Save a file
Author |
Message |
HazySmoke)345
![](http://i10.photobucket.com/albums/a121/HazySmoke/clubps2.jpg)
|
Posted: Mon Feb 27, 2006 8:31 pm Post subject: Save a file |
|
|
I'm just wondering how to create/save a file with visual basic. I have no idea how to start. What I'm trying to do now is that I want to create a file at C:\ called "testing.dat" and write the following text:
Since I never tried to create a file, I have no idea how to do it... anyone knows the syntax for it? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
cool dude
![](http://www.taylorstrategicmarketing.com/images/king.jpg)
|
Posted: Tue Feb 28, 2006 5:59 pm Post subject: (No subject) |
|
|
Private Sub Form_Load()
Open "c:/filename" For Output As #1
Write #1, "1" + "2"
End Sub
i think thats wat u want. the open for output creates the file and the write statement writes watever u want in the file |
|
|
|
|
![](images/spacer.gif) |
|
|