| View previous topic :: View next topic |
| Author |
Message |
saheb_vb Newbie
Joined: 10 May 2006 Posts: 2
|
Posted: May 31st, 2006 11:43 PM Post subject: saving files |
|
|
| How can I save the contents of a text box in the hard the disk in specified format. |
|
| Back to top |
|
P.T.A.M. Administrator

Joined: 08 Oct 2003 Posts: 752 Location: Greece
|
Posted: Jun 6th, 2006 06:36 AM Post subject: |
|
|
| 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 |
|
RoofRabbit Regular

Joined: 06 Jul 2005 Posts: 95 Location: Lenoir, NC USA
|
Posted: Aug 19th, 2006 10:14 PM Post subject: |
|
|
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 |
|
|