Reading files

Hi,

The application I’m developing needs to accept data from a file source and I need a way to read that data into records line by line. The files could contain either fixed length records or delimited, most likely comma.

I’ve seen the function, plugins.file.readTXTFile(), but this reads the entire file into memory and I’m not sure how I would process this, using the string functions I’ve found so far. I would need to keep a pointer as to how much of the file I have read as whilst it is uncommon, it is not impossible for the files to be quite large i.e. 100Mb.

I’m used to using Foxpro where FGet() can be used to read a line at a time. Is there an equivalent in Servoy?

Kind regards,

Tony

Hi Tony this topic might help you http://forum.servoy.com/viewtopic.php?t … er#_thread

Thanks, that is just what I was looking for but couldn’t find! :D

Tony