Raised This Month: $ Target: $400
 0% 

File writing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 10-18-2010 , 22:46   File writing
Reply With Quote #1

If i want to write to the bottom line of a file ( as in the newest blank line ), then the line I need to write to will be, file_size(File,1) ?
Is this correct, or must it be file_size(File,1) + 1 ? I'm not sure if text files have a line 0?

Thanks.
hornet is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-18-2010 , 22:48   Re: File writing
Reply With Quote #2

If you are using write_file(), leave the line as -1 and it will put at the end of the file.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply


Thread Tools
Display Modes

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 10:17.


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