aspose file tools
The moose likes Beginning Java and the fly likes  EOF character in java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark " EOF character in java" Watch " EOF character in java" New topic
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
    
    2

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EOF character in java
 
Similar Threads
problem with BufferedReader
reading from files
EOF
Merging files
Line Endings