Raised This Month: $ Target: $400
 0% 

File functions - Which to use


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 02-09-2007 , 01:42   Re: File functions - Which to use
Reply With Quote #2

fopen/fclose/fgets/fputs and the like are the "ideal" functions to use, but they're a bit harder to use (unless you've had prior experience with them in C) than read_file/write_file.

read_file especially is a very expensive native when used in a medium to large sized file. It's fine if used only for a couple of lines, but ideally you should use fgets() (and, obviously fopen()/fclose()) instead for anything large or speed-critical.
__________________
fyren sucks
sawce is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode