| | |
Open, search, replace data, save, close .txt file
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jan 2008
Posts: 4
Reputation:
Solved Threads: 0
Forwarn I am a newbe to the coding word!
I am writing an application to open a 'machine code' file, in .txt format, to edit a value, save and close the file to the same directory. I have been successfull using a listbox to show all files, with the correct extension, and allowing the user to 'selecteditems' open the file and display the entire .txt file in a textbox. What I would like to do is to only show in a textbox the value of the variable to be changed, add a second textbox to enter the new value and replaced the old, save and close file to the same directory.
Does anyone have direction on performing this task of only two textboxes and changing data, from a search, in a .txt file? Thanks for the help and direction....
If I had to guess, I would say I need to add an object with a loop statement to parse through the .txt file finding the variable I want to change?
I am writing an application to open a 'machine code' file, in .txt format, to edit a value, save and close the file to the same directory. I have been successfull using a listbox to show all files, with the correct extension, and allowing the user to 'selecteditems' open the file and display the entire .txt file in a textbox. What I would like to do is to only show in a textbox the value of the variable to be changed, add a second textbox to enter the new value and replaced the old, save and close file to the same directory.
Does anyone have direction on performing this task of only two textboxes and changing data, from a search, in a .txt file? Thanks for the help and direction....
If I had to guess, I would say I need to add an object with a loop statement to parse through the .txt file finding the variable I want to change?
•
•
Join Date: May 2008
Posts: 2
Reputation:
Solved Threads: 0
I need to do something like this also....I have to read a file, then add new entries, search for input values......So if U have already done this code...could u post it up with all the classes
thanks
thanks
•
•
•
•
Forwarn I am a newbe to the coding word!
I am writing an application to open a 'machine code' file, in .txt format, to edit a value, save and close the file to the same directory. I have been successfull using a listbox to show all files, with the correct extension, and allowing the user to 'selecteditems' open the file and display the entire .txt file in a textbox. What I would like to do is to only show in a textbox the value of the variable to be changed, add a second textbox to enter the new value and replaced the old, save and close file to the same directory.
Does anyone have direction on performing this task of only two textboxes and changing data, from a search, in a .txt file? Thanks for the help and direction....
If I had to guess, I would say I need to add an object with a loop statement to parse through the .txt file finding the variable I want to change?
![]() |
Similar Threads
- Virus alert! icon in sytem try maybe spyfalcon (Viruses, Spyware and other Nasties)
- Winlogon.exe infected or not? (Viruses, Spyware and other Nasties)
- "cannot resolve symbol"problem (Java)
Other Threads in the VB.NET Forum
- Previous Thread: VC++ application inside the browser
- Next Thread: make program run at startup?
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
"crystal .net .net2005 30minutes 2005 2008 access application arithmetic array basic binary bing button buttons c# center check code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net dropdownlist error excel file-dialog folder ftp google hardcopy image images inline listview login math memory mobile ms navigate net networking opacity output peertopeervideostreaming picturebox picturebox1 plugin port print printing problem problemwithinstallation project reports" save savedialog searchbox serial server soap sorting sql string studio tcp text textbox timer toolbox trim updown upload useraccounts usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio web wpf





