reading text file into array of string
I should know how to do this but I can't make it work. The code snippet that I used to have used TFileStream inside a try finally block. Carriage return (#13#10) was detected and the loop ran until end of file.
This is what I need. I need to read a text file line for line and place each line into a cell of a dynamic array of string. The array is dynamic to accommodate text files of varying number of lines.
The program I am working on is to read a user written script and process the instructions in that script. My idea of reading a text file may be inefficient so I am open to better ideas for script reading / processing.
Don
This is what I need. I need to read a text file line for line and place each line into a cell of a dynamic array of string. The array is dynamic to accommodate text files of varying number of lines.
The program I am working on is to read a user written script and process the instructions in that script. My idea of reading a text file may be inefficient so I am open to better ideas for script reading / processing.
Don