Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Registry & File Input / Output

Post new topic   Reply to topic
saving files
View previous topic :: View next topic  
Author Message
saheb_vb
Newbie


Joined: 10 May 2006
Posts: 2

PostPosted: May 31st, 2006 11:43 PM    Post subject: saving files Reply with quote

How can I save the contents of a text box in the hard the disk in specified format.
Back to top
View user's profile Send private message Send e-mail
P.T.A.M.
Administrator


Joined: 08 Oct 2003
Posts: 752
Location: Greece

PostPosted: Jun 6th, 2006 06:36 AM    Post subject: Reply with quote

Code:
Dim FF As Integer

FF = FreeFile

Open "C:\your file.xxx" For Output As #FF
 Print #FF, "some data"
Close #FF


That is the general idea.
Now you can specify your format and then input it accordingly afterwards.
_________________
No one is completely useless. They can at least be an example of what to avoid.
Back to top
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
RoofRabbit
Regular


Joined: 06 Jul 2005
Posts: 95
Location: Lenoir, NC USA

PostPosted: Aug 19th, 2006 10:14 PM    Post subject: Reply with quote

If the textbox is already formatted as you desire, you can also use binary mode.

Code:

Dim FF As Integer
FF = FreeFile
Open "C:\your file.xxx" For Binary as FF
   Put #FF, , textbox.text
Close #FF

_________________
Website - [link]
Back to top
View user's profile Send private message Visit poster's website ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Registry & File Input / Output All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic