This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Fgets is not working on linux/gcc3.2.1
- From: Bharathi S <bharathi at lantana dot tenet dot res dot in>
- To: GNU GCC <gcc-help at gcc dot gnu dot org>
- Date: Thu, 10 Apr 2003 12:15:06 +0530 (IST)
- Subject: Re: Fgets is not working on linux/gcc3.2.1
On Thu, 10 Apr 2003, Ajay Bansal wrote:
> Following program is not working on linux. Ideally it should read
> all the lines from "/tmp/log.txt" and print them on to the screen.
> Instead it breals after it encounters fgets for the first time.
File is opened in Append mode. Bcoz of this file pointer may
positioned in the end of file.
Try it by opening in Read mode.
HTH :)
--
Bharathi S, IndLinuX Team, (__)
DON Lab, TeNeT Group, oo )
IIT-Madras, Chennai-INDIA. (_/\