Computing.Net > Forums > Programming > Clear Text File in VB

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.

Clear Text File in VB

Reply to Message Icon

Name: astroraptor
Date: June 13, 2004 at 19:02:46 Pacific
OS: Windows 2000 Pro
CPU/Ram: 1.6GHz/512Mb
Comment:

Hi, how do I clear text in a file from VisualBasic? I tried: Shell("ECHO.>D:\file.txt") but it didn't work. Any other way to do it? Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: nerm
Date: June 13, 2004 at 19:13:58 Pacific
Reply:

Private Sub ButtonName_Click()

Open "file.txt" For Output As #1
Close #1

End Sub


0

Response Number 2
Name: astroraptor
Date: June 13, 2004 at 19:43:19 Pacific
Reply:

Thanks! LOL, I always do things the hard or stupid way.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


__cdecl problem Keyboard Navigation Indic...



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: Clear Text File in VB

read text file in c to char pointer www.computing.net/answers/programming/read-text-file-in-c-to-char-pointer/7074.html

concatenating wave files in VB www.computing.net/answers/programming/concatenating-wave-files-in-vb/6272.html

play a mp3 file in vb or in html www.computing.net/answers/programming/play-a-mp3-file-in-vb-or-in-html/15624.html