Article View: borland.public.csharpbuilder.language.csharp
Article #618Re: try catch question
From: Jon Shemitz
Date: Tue, 13 Jul 2004 18:08
Date: Tue, 13 Jul 2004 18:08
22 lines
1713 bytes
1713 bytes
I wrote:
> This isn't valid skeleton code - you need
> StreamWriter mywriter = new StreamWriter("pathtofile");
> not
> StreamWriter mywriter new StreamWriter("pathtofile");
then
> try { StreamWriter mywriter new StreamWriter("pathtofile"); }
> StreamWriter mywriter new StreamWriter("pathtofile");
> using (StreamWriter mywriter new StreamWriter("pathtofile"))
I should know better than to reply late at night after I've "clocked
out" because I'm tired. ;-)
--
programmer, author http://www.midnightbeach.com
and father http://www.midnightbeach.com/hs
Technical Details
Message-ID:
<40F4250D.F1FF9381@midnightbeach.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40f3748e@newsgroups.borland.com> <40F380DB.819CE161@midnightbeach.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,f80ee75cfac101b9 X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit Message-ID: <40F4250D.F1FF9381@midnightbeach.com> Date: Tue, 13 Jul 2004 11:08:13 -0700 From: Jon Shemitz <jon@midnightbeach.com> Reply-To: jon@midnightbeach.com Organization: Midnight Beach X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en-US,en MIME-Version: 1.0 Newsgroups: borland.public.csharpbuilder.language.csharp Subject: Re: try catch question References: <40f3748e@newsgroups.borland.com> <40F380DB.819CE161@midnightbeach.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 63.249.65.27 X-Trace: newsgroups.borland.com 1089742096 63.249.65.27 (13 Jul 2004 11:08:16 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail