Computing.Net > Forums > Programming > i wanted to delete the content of a text file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

i wanted to delete the content of a text file

Reply to Message Icon

Name: jithinkm
Date: July 12, 2009 at 22:37:03 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

i wanted to delete the content of a text file through a batch file

is anyboy there to Help me ...........



Thanks

Jithin K M



Sponsored Link
Ads by Google

Response Number 1
Name: Judago
Date: July 12, 2009 at 23:57:30 Pacific
Reply:

If you want to delete ALL of the content of a file and leave a zero byte file of the same name in it's place:

type nul>"filename"


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: i wanted to delete the content of a text file

Batch file - editting a text file? www.computing.net/answers/programming/batch-file-editting-a-text-file/17240.html

Delete Last line of a text file www.computing.net/answers/programming/delete-last-line-of-a-text-file/20179.html

Delete blank lines from a text file www.computing.net/answers/programming/delete-blank-lines-from-a-text-file/14525.html