Subj : Re: How to in C or C++....? To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Sat Aug 09 2003 02:22 pm Yes I did. It was supposed to be fgets with 3 arguments. .. Ed > Thomas Maeder wrote in message > news:m2smobxk7v.fsf@madbox2.local... > > > > fgets(buf, sizeof(buf), 1, fp); // read the line in > > Could it be that you mixed the prototypes of fgets() and fread() here? > > fgets() only takes three arguments; I'd call it like this: > > fgets(buf, sizeof(buf), fp); .