I am writing an application that requires the user to fill in several fields on diferent forms. The data is stored in a listbox on the final form. I need to be able to save the data into a text file on my HD but am struggling to come up with the right code to do it. Any examples of the code needed would be a great help. I am using Visual Studio 2005.
Thanks.
I don't know how to do it with VS2005, but I can with VB6. Here is some code in VB6 that might help you out.
Code:Open "c:\temp.txt" For Output As #1 For i = 0 To List1.ListCount - 1 Print #1, List1.Index(i) Next i Close #1
Option Explicit
and how can you save the data on a text file on my host can someone help me ?
You mean using FTP?
yes can you help me ?
Well try this code:
Visual Basic Simple FTP Upload
as you can see it is quite a piece of code and I don't have time to code it my self, so I found this for you. Hope it helps. (You need an OCX, can be downloaded from there)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks