|
-
Jan 21st, 2002, 12:43 AM
#1
Thread Starter
Junior Member
Clearing Out a Text File
Hello again! I've got a question which I think is probably pretty simple. I've got a text file called "prefs.ini." I just need to clear its contents. I think it contains 6 lines or so, and I just want to clear 'em all out. Here's my code:
Private Sub clearfile(ByVal location)
Dim writer As StreamWriter = New StreamWriter(location)
'I want to clear all contents of this file
End Sub
Thanks!
Sincerely,
Reid V. Plumbo
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|