AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to delete something out of txt with cmd (https://forums.alliedmods.net/showthread.php?t=27287)

wonsae 04-19-2006 00:57

how to delete something out of txt with cmd
 
How would I delete something out of a txt with a command? I know how to make it in the txt but not delete it with a command

GHW_Chronic 04-19-2006 01:01

write_file(file,"",line)

will delete line "line"

Twilight Suzuka 04-19-2006 01:13

No, it will just make a blank line.

GHW_Chronic 04-19-2006 02:05

Quote:

Originally Posted by Twilight Suzuka
No, it will just make a blank line.

I thought that was the idea.

Twilight Suzuka 04-19-2006 02:09

I think he wants to actually delete it.

GHW_Chronic 04-19-2006 02:12

so suzuka, enlighten us on how you would do this, or is there nothing short of writing the lines we want from the file to a new file and deleting the old file (very bad efficiency I'm sure).

Twilight Suzuka 04-19-2006 03:11

You'd need to use the new natives or Stream module to delete the ^n.

wonsae 04-19-2006 10:52

so how would I delete it?


All times are GMT -4. The time now is 05:14.

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