|
-
December 5th, 1999, 02:52 PM
#1
Saving to a .txt file
yeah whats the code for saving a txt file? you no where you go File|Save. thanks
PanasonicSubz
-
December 5th, 1999, 03:09 PM
#2
Re: Saving to a .txt file
Using this code, you open (if exists) or create (if it doesn't) Test.txt file in an Application folder, enter some values and save the file:
private Sub Command1_Click()
Dim intFileNumber as Integer
Dim lngPosition as Long
intFileNumber = FreeFile
Open App.Path & "\Test.txt" for Output lock Read Write as #intFileNumber
Write #intFileNumber, "It works", "Hello, World"
Close #intFileNumber
End Sub
Vlad
-
December 7th, 1999, 01:31 AM
#3
Re: Saving to a .txt file
Private Sub Write_to_File()
Open "C:\TEST.TEXT" For Append As #1
Print #1, "Test"
Close #1
End Sub
-
December 10th, 1999, 09:15 AM
#4
Re: Saving to a .txt file
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
|