Re: Visual C# Express Edition Save different lines of text from a listBox to different files?
MLyons10
O.K., sorry if I was unclear. Most of the articles I read referenced FileName, so it must just be a common name for a string. I thought that the use of FileName was a reference built into VS to pull the data from the listbox. Sorry if I'm a little confused.
Let me try to be a bit clearer. If I'm not, please let me know.
Presently, in the listBox I have working in the application, it renames the files that it saves from the listBox. I would like a different listBox to save the files without renaming them. In effect I would like to use the same file name as was originally used. I would like to just specify the path.
Also, I was wondering if this can be done with a textbox. For example, if I have a file referenced in a textBox, as the files are referenced in the above listBoxes, can that file be saved as well The textBox does not allow use of the .Items as the listBox does, so would I use a .Copy or something to reference the file When I tried to do this earlier I just kept saving the file path as text, not the actual file. Obviously I made a sizeable error there...lol
Any help and information is greatly appreciated.
Thanks Again,