Notifications
Clear all
Topic starter
Good morning all -
I'm attempting to use FILEREAD() in an encounter form, and it's reading my file okay, but it's terminating after it finds the first \n. Does anyone know of any way to read an entire text file, and not just the first line?
Thanks for any help!
Posted : February 25, 2016 6:53 am
FILEREAD() returns one line at a time. Check for a null string which is returned at the end of the file.
Posted : February 25, 2016 7:07 am
Between the fileopen and the fileclose you have to write a loop with the fileread inside. If I remember correctly I had each fileread append a local variable and then checked for two consecutive blank filereads to terminate the loop.
Posted : February 25, 2016 7:08 am
Topic starter
Thank you! I was able to write a while loop and append the FILEREAD onto a variable.
Posted : February 25, 2016 10:22 am