Re: Packing a C# project.

"Neil Munro" <[email protected]> Wed, 11 Jun 2008 20:11:50 +0100
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
Damn run into an issue, not sure if anyone can help me solve it though,
since I am removing all the code i previously entered which I did not need.
I have a bug in that I specify a path

string sFileName = "~/.config/warp/feeds.txt";
FileStream Feeds = new FileStream( sFileName, FileMode.Open, FileAccess.Read
);
StreamReader Reading = new StreamReader( Feeds );

But I get this error at runtime:
Could not find a part of the path
"/home/niadh/Dev/warp/trunk/WarpCoreV2/bin/Debug/bin/~/.config/warp/feeds.txt"..

Obviously files are still being treated relatively, anyone know how to work
around this?

2008/6/11 Isak Savo <[email protected]>:

> On Wed, Jun 11, 2008 at 8:45 PM, Neil Munro <[email protected]> wrote:
> > Ok, i found one file that is a help file which IS a data file, but for
> now I
> > will leave that out and rip out all the Path.combine stuff move all
> config
> > files to ~/.config/warp.
>
> Yeah, online help should be in DataDir somewhere (exact location
> depends on program, but $prefix/share/<program>/help is quite common I
> imagine)
>
> > I'll see where I am at then, I'd like to take the time to thank you for
> all
> > your help so far. I imagine it's perhaps a little bit frustrating to
> > constantly be answering my questions. So thank you. :)
>
> You're welcome.
>
> We've all been beginners at some stage in our lives. :)
>
> -Isak
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
> For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]
>
>