Hi all
I am trying to read a text file into an array, however the EOF appears to be stopping before the End of File...
I have figured out that each line of the text file is finished with a LF and I think I need a CRLF for the EOF to recognise further data.
I am using the code below which catered for the same input text file with a CRLF at the end of each line.
I suppose I am trying to replace the LF's with CRLF's. Is there any way to manipulate the below code?
Code:iFileNum = FreeFile Open FileName For Input As iFileNum x = 0 ReDim Preserve sLine(x) Do Until EOF(iFileNum) Line Input #iFileNum, sLine(x) x = x + 1 ReDim Preserve sLine(x) Loop Close iFileNum