Re: getc( ) and gets( ) speed

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu