| Author |
EOF character in java
|
abhay jain
Ranch Hand
Joined: Jun 03, 2011
Posts: 130
|
|
|
is there No EOF character in java thats why we need to use -1 as EOF character ???
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
No, that's not right. Java doesn't decide what gets to be a character or not. That's up to Unicode, and then Java just uses Unicode's definition of a character.
But anyway it's possible to write any character you like into a file. So it wouldn't make sense to name one character as the "end of file" character; what would happen if you wanted to put that character into a file?
|
 |
 |
|
|
subject: EOF character in java
|
|
|