🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.lang.csharp
Article #201

Re: operacje na pliku

#201
From: VotA
Date: Wed, 19 Nov 2003 20:39
26 lines
2086 bytes
>     Uda�o mi si� wysma�y� prosty przyk�ad. Mam nadziej�, �e co� pomo�e:
>
Wydaje mi sie ze zrozumialem, ale tak dla potwierdzenia
[cut]
>             string output = Console.ReadLine();
o co tutaj chodzi?
>
>             StreamWriter writer = File.CreateText("file.txt");
>             writer.Write(output);
>             writer.Close();
A o co chodzi z tym writer.Writer(output)? bo wszystko oprocz tego z tego
fragmentu rozumiem.
>             StreamReader reader = File.OpenText("file.txt");
>             string input = reader.ReadLine();
>             reader.Close();
 string input = reader.ReadLine(); - tego nie kapuje
>             Console.WriteLine("{0} == {1}: {2}", output, input, input ==
> output);

A tego to juz wogole :(

Wiec jakbys mogl to jakos wyjasnic to bylbym jeszcze bardziej wdzieczny :)
Pozdrawiam
VotA
PS. (do Marcina Hoppe) Sorki ze napisalem to do Ciebie na maila tez ale mi
sie przyciski pomieszaly...
Technical Details
Message-ID: <bpgkf0$ium$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!fr.ip.ndsoftware.net!212.27.32.7.MISMATCH!proxad.net!newsfeed.tpinternet.pl!newsfeed.gazeta.pl!news.gazeta.pl!not-for-mail
References: <bpg8s1$635$1@inews.gazeta.pl> <bpggqb$594$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!fr.ip.ndsoftware.net!212.27.32.7.MISMATCH!proxad.net!newsfeed.tpinternet.pl!newsfeed.gazeta.pl!news.gazeta.pl!not-for-mail
From: "VotA" <vo...@gazeta.pl>
Newsgroups: alt.pl.comp.lang.csharp
Subject: Re: operacje na pliku
Date: Wed, 19 Nov 2003 21:39:54 +0100
Organization: Portal Gazeta.pl -> http://www.gazeta.pl
Lines: 30
Message-ID: <bpgkf0$ium$1@inews.gazeta.pl>
References: <bpg8s1$635$1@inews.gazeta.pl> <bpggqb$594$1@inews.gazeta.pl>
NNTP-Posting-Host: pa208.legnica.cvx.ppp.tpnet.pl
X-Trace: inews.gazeta.pl 1069274401 19414 213.76.85.208 (19 Nov 2003 20:40:01 GMT)
X-Complaints-To: use...@agora.pl
NNTP-Posting-Date: Wed, 19 Nov 2003 20:40:01 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-User: vota
X-MSMail-Priority: Normal
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit