Re: saving file

From: Joerg Jooss (joerg.jooss_at_gmx.net)
Date: 01/02/05


Date: Sun, 2 Jan 2005 18:11:24 +0100

psg wrote:
> "Joerg Jooss" <joerg.jooss@gmx.net> wrote in message
> news:ueS%23KxO8EHA.2192@TK2MSFTNGP14.phx.gbl...
>> Yup, I completely missed that! Now that's a funny way to write a
>> file :-D
>
> be sure that You have "C:\text\"
> otherwise it will rise an exception:
> "Additional information: Could not find a part of the path
> "c:\text\text.txt"."

C'mon, use a FileStream and be done with it.

Cheers,

-- 
Joerg Jooss
www.joergjooss.de
news@joergjooss.de 


Relevant Pages

  • Re: Ka....plonk
    ... funny, ... I also plonk without exception the political threads. ... Plonking, used when necessary, has made RSG quite enjoyable for me. ...
    (rec.sport.golf)
  • Re: Problem with FileStream - FileNotFoundException
    ... impersonation must be turned off. ... I have the following problem with FileStream. ... User on which application is running has full permision to the destination folder. ... I've cheked other constructors of the FileStream class and the same exception is thrown. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Opera poetry: pass the sick bucket....
    ... Surely with the talent we ... have on here we can rise to the occasion? ... Now funny you should mention it. ...
    (rec.music.opera)
  • Re: Why is the compiler flagging this variable as unassigned?
    ... And you're right about the FileStream as well. ... suppressing the original error? ... include the original Exception in the Exception stack? ... >> I broke this up into two try/catch blocks. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: throwing exception from constructor
    ... The FileStream constructor is another example of a poor design choice. ... opening a file is not a simple operation. ... there'd still be an exception occurring. ...
    (microsoft.public.dotnet.languages.csharp)