Re: getc( ) and gets( ) speed
- Posted by Robert Craig <rds at RapidEuphoria.com> Dec 16, 2003
- 536 views
Derek Parnell wrote: > However, gets() only works for text files, it makes a > mess of binary files. gets() works fine on any kind of file. It won't make a mess. You can use it to copy any file. If the '\n' characters happen to be few and far between, then the length of the "line" that you read with gets() could be unpredictable and very large. gets() is currently coded to run fast with lines less than 1040 characters, but it will handle lines of any length (as long as there's enough memory). Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com