Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Save Listbox data to txt file?
Name: pds2ect Date: September 16, 2007 at 11:32:04 Pacific OS: Windows XP CPU/Ram: 1.60 GHz, 512 MB RAM
Comment:
I am using Visual Studio 2005 and am trying to save the data gathered in a listbox to a .txt file on my HD. Any samples of code you can provide will be greatly appreciated. Thanks.
foreach(ListItem item in ListBox.items){ SW.WriteLine(item.text);
}
SW.Close(); }
0
Response Number 2
Name: pds2ect Date: September 17, 2007 at 10:16:29 Pacific
Reply:
I am developing an application for windows. I want the user to be able to save the items in the listbox to a file of their choice on their hard drive as a text file. I am fairly new to VB but have managed to get everything working except the saving of the data. I need to let the user choose the filename as they may require more than one lot of items to be saved from the listbox. Thanks for your help so far.
Summary: I am writing a Perl script to convert a .elf file to .txt file but It is failing in a initial state? Actual program going to convert a .elf to .txt file format with 80 character in a line. If the .txt...
Summary: I am writing a Perl script to convert a .elf file to .txt (Hexadecimal file) file but It is failing in a initial state? Actual program going to convert a .elf to .txt file format with 80 character in ...
Summary: i would, on starting, open the .txt file using a filesystemobject (look on the msdn to see how to use these) and interpret all the data into an array or something, then, when the program is shut down ...