in reply to Re: reading from a textfile
in thread reading from a textfile

I have tried in all the ways but it still doesn't print anything. Thanks again for your help.

Replies are listed 'Best First'.
Re^3: reading from a textfile
by davidj (Priest) on Jun 15, 2004 at 11:33 UTC
    The code I offered works with the text snippet you supplied. Therefore, you either have a mistake in your code or the text file you are working with is formatted differently. Please show us what you are doing, (give us the code), and a larger sample of the text file myfile.txt (all of it if possible) and we will be able to better help you.

    davidj