|
-
March 17th, 2006, 10:38 AM
#5
Re: Read/Write to .ini files in vb.net
I have copied and pasted this code into by VB.NET project, and .NET does not seem to have a problem with the code, however nothing is being written to my INI file. I have created the INI file by using a File.Create("ExportSettings.ini"), which creates a file in the same directory as my executable, but when I try to write values to the INI file, nothing shows up. Here is my code:
Dim sINIpath as String
sINIpath = "ExportSettings.ini"
If File.Exists(sINIpath) = False then
File.Create(sINIpath)
modINIAccess.INIWrite(sINIpath, "sde", "connectstring", "1")
End If
Any insight would be greatly appreciated!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|