Raised This Month: $ Target: $400
 0% 

how to delete something out of txt with cmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 04-19-2006 , 00:57   how to delete something out of txt with cmd
Reply With Quote #1

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
wonsae is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 04-19-2006 , 01:01  
Reply With Quote #2

write_file(file,"",line)

will delete line "line"
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-19-2006 , 01:13  
Reply With Quote #3

No, it will just make a blank line.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 04-19-2006 , 02:05  
Reply With Quote #4

Quote:
Originally Posted by Twilight Suzuka
No, it will just make a blank line.
I thought that was the idea.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-19-2006 , 02:09  
Reply With Quote #5

I think he wants to actually delete it.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 04-19-2006 , 02:12  
Reply With Quote #6

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).
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-19-2006 , 03:11  
Reply With Quote #7

You'd need to use the new natives or Stream module to delete the ^n.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 04-19-2006 , 10:52  
Reply With Quote #8

so how would I delete it?
wonsae is offline
Reply



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 05:14.


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