[Mono-list] Newbie question - porting app from Windows to Linux
Stifu
stifu at free.fr
Sun Jul 25 09:44:52 EDT 2010
Check this out:
http://www.mono-project.com/Guidelines:Application_Portability#Path_Separators
In other words, try using Path.DirectorySeparatorChar
Newbie2910 wrote:
>
> My app uses a small config file. When I run the app, I get this error:
>
> System.IO.FileNotFoundException: Could not find file
> "/home/me/.config\MSTS\main.xml".
> File name: '/home/me/.config\MSTS\main.xml'
>
> I used the file browser to navigate to /home/me/.config/ and created an
> MSTS subfolder and copied my "main.xml" to it. I can see the file is
> there... any clue as to why the app can't see it?
>
> Also is there any difference between using \ and / ?
>
> Thanks.
>
--
View this message in context: http://mono.1490590.n4.nabble.com/Newbie-question-porting-app-from-Windows-to-Linux-tp2301534p2301553.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list