Re: Is There the EOF in C#?
From: Nick Malik (nickmalik_at_hotmail.nospam.com)
Date: 02/24/04
- Next message: Kevin Otte: "class-method in a thread"
- Previous message: Nick Malik: "Re: HELP! communicating with two or more .NET applications"
- In reply to: ±èÀçȲ: "Is There the EOF in C#?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 24 Feb 2004 15:30:29 GMT
Are you expecting a character encoded in the file that indicates the end of
file?
This is not a C# thing.
The file system does not encode a character to indicate the end of file
(although Ctrl-Z will still be treated as EOF by older C programs when
reading in character mode). The file system keeps track of the length of a
file, and when you've read all the characters, or bytes, in the file (as the
case may be), you are at the end. It's pretty simple.
EOF is a condition that can be detected using the properties on the stream
that you are using to read or write a file. It is not a character.
Hope this helps
--- Nick
"±èÀçȲ" <jhwang2u@dreamwiz.com.kr.korea.me.mail.me> wrote in message
news:e1rtWmf%23DHA.2432@TK2MSFTNGP09.phx.gbl...
> Is There the EOF in C#.?
>
> What is the EOF..?
>
> Why C# doen't have EOF ..?
>
> Thanks..Enjoy Programming!!
>
>
- Next message: Kevin Otte: "class-method in a thread"
- Previous message: Nick Malik: "Re: HELP! communicating with two or more .NET applications"
- In reply to: ±èÀçȲ: "Is There the EOF in C#?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|