Looping through disk data files like a mileometer

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
user#606
Posts: 217
Joined: Sun Jan 27, 2008 12:25 pm
Contact:

Looping through disk data files like a mileometer

Post by user#606 » Fri Apr 25, 2008 3:32 pm

I have three data files on disk to read through, a bit like a mileometer on a car, so the contents of each file combination can be processed.
The lines of data in each file is TAB delimited and contain different numbers of fields. There has to be the 3 files.
File 1 - 3 tabed fields File 2 - 2 tabbed fields File 3 - 4 tabbed fields
File 1 cycles through its contents and increments File 2 by 1
This repeats until File 2 has cycled through all its contents and increments File 3 by 1
This whole process continues until File 3 has cycled through all its contents and the process stops.
At the end of all File Cycles the data must not be empty (as can happen after the last line has been read).

Has anyone a neat solution for this?

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Post by BvG » Sat Apr 26, 2008 10:39 pm

Try to put several loops into each other, that'd do the trick
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Post Reply