How to read from a file every 3 lines until eof

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

alemrantareq
Posts: 203
Joined: Wed Jul 23, 2008 8:46 am

Re: How to read from a file every 3 lines until eof

Post by alemrantareq » Mon Jun 15, 2015 7:33 am

Bunch of thanks Craig for your useful replies. I was trying to use 'repeat for each line' thing for 2 columns which was giving me wrong results. Now all things go fine. I want to set the cursor to busy while the process is running. Is there any chance to show the system busy cursor instead of LC's default one?

alemrantareq
Posts: 203
Joined: Wed Jul 23, 2008 8:46 am

Re: How to read from a file every 3 lines until eof

Post by alemrantareq » Fri Jun 19, 2015 9:59 am

hi jacque, is it possible to merge 2 columns without repeat loop like you splitted into 2 parts? Reply will be much appreciated :)

I've tried with the merge function but seems it doesn't work like split command...

One Good news: I can use split command and the progress bar together without repeat loop which has boosted my process 6x faster. The process that took 2 min and 6 secs now takes 30 secs only :D :D

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to read from a file every 3 lines until eof

Post by Klaus » Fri Jun 19, 2015 1:32 pm

The opposite of SPLIT = COMBINE! 8)

alemrantareq
Posts: 203
Joined: Wed Jul 23, 2008 8:46 am

Re: How to read from a file every 3 lines until eof

Post by alemrantareq » Fri Jun 19, 2015 4:02 pm

Hi Klaus, thanks so much for your reply. Your clue helped me finishing my pending project. The command "combine" never drew my attention before. Thanks you again :D

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to read from a file every 3 lines until eof

Post by Klaus » Fri Jun 19, 2015 4:06 pm

It is always useful to read the "See also:" sections in the dictionary!

alemrantareq
Posts: 203
Joined: Wed Jul 23, 2008 8:46 am

Re: How to read from a file every 3 lines until eof

Post by alemrantareq » Fri Jun 19, 2015 4:59 pm

ohh! that's my bad.. I always neglect 'see also' while searching helps in the dictionary. That's why I didn't find the proper command to combine the arrays splitted. Thanks you (Klaus) again for showing me my fault :)

Post Reply