PanasonicSubz
December 5th, 1999, 01:52 PM
yeah whats the code for saving a txt file? you no where you go File|Save. thanks
PanasonicSubz
PanasonicSubz
|
Click to See Complete Forum and Search --> : Saving to a .txt file PanasonicSubz December 5th, 1999, 01:52 PM yeah whats the code for saving a txt file? you no where you go File|Save. thanks PanasonicSubz December 5th, 1999, 02:09 PM 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 FStocker December 7th, 1999, 12:31 AM Private Sub Write_to_File() Open "C:\TEST.TEXT" For Append As #1 Print #1, "Test" Close #1 End Sub smalig December 10th, 1999, 08:15 AM How to save a text file from a textbox in one call. http://vbcode.webhostme.com/en/code.asp?id=58 smalig@hotmail.com http://vbcode.webhostme.com/ codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |