Click to See Complete Forum and Search --> : (byte)4 stands for eof???
cntomcom
January 7th, 2003, 06:03 AM
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);
...
TheCPUWizard
January 7th, 2003, 06:47 AM
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.
cntomcom
January 7th, 2003, 07:38 AM
If it's for Unix, why oould I use it in Windows?
Goodz13
January 7th, 2003, 01:26 PM
TheCPUWizard probably didn't know what Platform you were using.
TheCPUWizard
January 7th, 2003, 01:54 PM
That plus some programs that have a unix history or bias (e.g. some Java implementations...) still use ctrl-D. :D
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.