R
Rob Meade
Hi all,
I was looking this evening for a quick sample of iterating through a text
file to read it in line by line...
I had already thrown something together myself which resembled the example,
but the main difference being that in my code I simply give the stream
reader the path to my file, where as in the example they opened the text
file, held it in an object, then fed that to the stream reader.
Can anyone advise why a) my way still works! b) whether its better to open
the text file first rather than doing what I'm doing.
Many thanks
Rob
I was looking this evening for a quick sample of iterating through a text
file to read it in line by line...
I had already thrown something together myself which resembled the example,
but the main difference being that in my code I simply give the stream
reader the path to my file, where as in the example they opened the text
file, held it in an object, then fed that to the stream reader.
Can anyone advise why a) my way still works! b) whether its better to open
the text file first rather than doing what I'm doing.
Many thanks
Rob