|
-
January 7th, 2003, 07:03 AM
#1
(byte)4 stands for eof???
I saw a old post and I have tried it. It does work, but I couldn't understand it well.
I use it as follow:
RandomAccessFile raf;
...
raf.write((byte)4);
...
-
January 7th, 2003, 07:47 AM
#2
While Ctrl-Z (26) is the most common EOF marker in PC land (Dos/Windows) and Mani Mini computers. Ctrl-D (4) is the most common in the Unix world.
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
-
January 7th, 2003, 08:38 AM
#3
If it's for Unix, why oould I use it in Windows?
-
January 7th, 2003, 02:26 PM
#4
TheCPUWizard probably didn't know what Platform you were using.
-
January 7th, 2003, 02:54 PM
#5
That plus some programs that have a unix history or bias (e.g. some Java implementations...) still use ctrl-D.
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|