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 , 02:57   Re: File functions - Which to use
Reply With Quote #4

fread exists (I just didn't comment about it), look in amxmodx/scripting/include/file.inc

I don't think it's well documented in the funcwiki though.

And yeah, for each read_file, core opens the file, scans to the line (a bunch of fgets()), byrefs the requested line and closes the file. write_file is similar (although write_file with a -1 line (append) is fast).
__________________
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