Menu

#33 file not exists?

open
nobody
None
5
2007-02-18
2007-02-18
No

Question with running an application that has no ini file in VB.NET 2005

In the VB sample app, I have renamed the BasicApp.ini to .old

During the following code:

source = New IniConfigSource("..\BasicApp.ini")

I get a System.IO.FileNotFound error.

Could you insert an optional parameter, that indicated that if the file was not found that it could be created? I feel that Nini works on the premise that the file (ini, xml, config) already exisits. Is this the case?

Discussion


Log in to post a comment.