how do i delete a line from a file? [solved]
Code:
new f = fopen(g_file, "a+"); |
Re: how do i delete a line from a file?
I did this in my FVault include.
Code:
http://forums.alliedmods.net/showthread.php?t=76453 |
Re: how do i delete a line from a file?
Well using exolent method I do this. PS: I dont test
PHP Code:
|
Re: how do i delete a line from a file?
what is the contador?
as i understand this func need to be provided by a whole line to compare it with lines find it and delete it? |
Re: how do i delete a line from a file?
All you have to do, is create a new file, and copy the contents of the current file to the new one except for the lines you don't want.
When you are done, close the files, delete the original file, and rename the new file to the original. |
Re: how do i delete a line from a file?
i tried to modyfy that stock but on execution it killed my test server =3
Code:
stock unregname(const arg2[]) |
Re: how do i delete a line from a file?
Code:
|
Re: how do i delete a line from a file?
this code kills server too =\
|
Re: how do i delete a line from a file? [still need help]
Try that.
If that doesn't work, then there is a problem with rename_file(), which means you don't have permission to rename the file. |
Re: how do i delete a line from a file? [still need help]
thx, but i think im gonna use arrays, cuz it's not good opening a file everytime som1 connects
*can't give rep atm, need to spread some first) |
| All times are GMT -4. The time now is 09:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.