How to: Read From Text Files in Visual Basic.; 2 minutes to read +5; In this article. The ReadAllText method of the My.Computer.FileSystem object allows you to read from a text file. The file encoding can be specified if the contents of the file use an encoding such as ASCII or UTF-8. INI files; Databases. As said, any Windows Forms application includes this file as part of the solution - so create a VB.NET Windows Forms application quickly. You can store all your Database connection strings, Resource locations (et al.) inside it. The reference and the namespace allows us to be able to read any configuration file as.
Hello,
I'm trying to write data to an INI file, I've got some code to read it: '>http://pastebin.com/Jpwf8XJM.
I've tried to modify this code to get it to be able to write to INI files, but I haven't had much success.
I know there are DLL's designed for this, but I would like to have my application so it can be distributed as a single EXE.
Also, I know there is My.Settings, but I cannot use this, as this INI file is used by another application, that I have not developed.
So, I was wondering if anyone could help me modify this code to write to an INI file, something like
I'm trying to write data to an INI file, I've got some code to read it: '>http://pastebin.com/Jpwf8XJM.
I've tried to modify this code to get it to be able to write to INI files, but I haven't had much success.
I know there are DLL's designed for this, but I would like to have my application so it can be distributed as a single EXE.
Also, I know there is My.Settings, but I cannot use this, as this INI file is used by another application, that I have not developed.
So, I was wondering if anyone could help me modify this code to write to an INI file, something like
Thanks, Matthew.
![Format Format](/uploads/1/2/6/3/126354236/467485045.gif)
- 2 Contributors
- forum2 Replies
- 934 Views
- 4 Hours Discussion Span
- commentLatest Postby Matthew N.