PDA

View Full Version : A seemingly strange limitation on file lines



Katherine001
10-08-2009, 06:29 PM
Here's an odd thing. I was using an lscript to read lines from a text file to use as a data file. I was using the parse() method of the file object agent.
It happily read everything until line 101,the last line. The last line is read as nils. For files with 101 or more lines you have to add a dummy line and not ask it to read the last line.

faulknermano
01-16-2010, 03:18 PM
This has been a bug since LScript began, I believe. Causes me pain, especially if the script relies on user-created text.

Also note that this ascii parser bug is also applicable to your actual LScripts; it is more notably expressed when you start @insert'ing scripts. Make sure you have one empty line at the bottom of the scripts.