File Reader!- Help!!
Author |
Message |
Shivu
![](http://compsci.ca/v3/uploads/user_avatars/6179424174829040be8c85.gif)
|
Posted: Sat Jun 14, 2008 12:09 am Post subject: File Reader!- Help!! |
|
|
HI
i have some problems understanding file reader and biffer reader, meaning how does the thing read the line (or does it read each character separately- i don't even know this) does it read it as a char, a s tring an int...
so i have to answer a question regarding this topic and i don't know how to implement it.
If one could please help me in this regard, that'd be great
here is the question:
In the text file ?data.txt?, the first line contains an integer which indicates the number of lines that follow. You program should read each one of these lines and then output on the screen the one with the longest length. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
|
|