Hello Stephan, As far as I remember, ANSI C fgets() behave as you descrbed from long time ago. You have to do as follows. char Line[201]; FILE *fPoiner = fopen(fname,"r"); fgets(Line,200,fPointer); char *cr = strchr(Line,'\n'); if(cr) *cr = 0; I am doing something like this whenever using fgets(). Thank you Masaharu Goto > >Hello, > >I want to use fgets () in a root macro. In the versions 2.21 2.22 and >2.23 it works not >in the forseen way. Instead of stopping at a $B'O(Bew line$B""(Bit reads the >maximum counts as >in >fgets (Line, 200, fPointer); >reads 199 characters including newlines (even multiples) > >cheers Stephan Heising > > > > >
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:43 MET