MSFN Forum: [VB] Simple Saving - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[VB] Simple Saving Rate Topic: -----

#1 User is offline   Doggie 

  • I'm very inactive :(
  • Group: Patrons
  • Posts: 2,676
  • Joined: 13-October 02

Posted 04 July 2003 - 03:39 AM

Simple Saving

If your thought of making a simple notepad like program but don't know how to output the text well heres a quick and simple guide on how. :)

Make sure for this example, have a textbox with multiline set to true and a command button

Open "c:\test.txt" For Output As #1
Print #1, text1.Text
Close #1


Quick Code Explanation
Open "c:\test.txt" For Output As #1

This will open or create the file c:\test.txt (if it exists already, will overwrite the existing file data)
Print #1, text1.Text

This simply means it will print all the data from the textbox, in this case from text1
Close #1

This will close the file

Quite Simple huh :rolleyes:?
got any questions go right ahead and next i will have an open function tutorial


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy