AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   File writing (https://forums.alliedmods.net/showthread.php?t=141047)

hornet 10-18-2010 22:46

File writing
 
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.

Exolent[jNr] 10-18-2010 22:48

Re: File writing
 
If you are using write_file(), leave the line as -1 and it will put at the end of the file.


All times are GMT -4. The time now is 10:17.

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