Google
 
   
Login
Username:

Password:


Lost Password?

Register now!
Search
Main Menu
top books
Polls
What do you think about php-deluxe.net?
Excellent!
Cool
Hmm..not bad
What the hell is this?
encyclopedia
recommendation
compare webbrowser
Freenet DSL
Who's Online
7 user(s) are online (7 user(s) are browsing encyclopedia)

Members: 0
Guests: 7

more...
browser tip
Unix Befehle
manual of unix befehle
recommendation!
Sponsored
partner

End-of-file

In Computing, end-of-file, commonly abbreviated EOF, is a condition in a computer operating system where no more data can be read from a data source. The data source is usually called a file or stream .

In the C programming language, or more correctly, the ANSI_C_standard_library, file access and other I/O functions may return a value equal to the symbolic value (macro) EOF to indicate that an end-of-file condition has occurred. The actual value of EOF is commonly -1, but is system-dependent. The macro EOF is expanded to the actual value by a preprocessor before compiling the source code.

In UNIX an end-of-file indication can be sent from an interactive shell (console) by typing Ctrl+D (conventional standard). In Microsoft s DOS and Windows it is sent by pressing Ctrl+Z. In certain cases when dealing with text files or reading data from a character device , the Microsoft MS-DOS shell (COMMAND.COM) or operating-system utility programs would historically append an ASCII Control-Z character to the end of a disk file (though the basic kernel MSDOS.SYS file write calls never appended a Control-Z). This was done for backward compatibility with some of the peculiarities of CP/M, since the CP/M File system only recorded the lengths of files in terms of how many 128-byte records were allocated. The File Allocation Table has always recorded the exact byte-length of files from its very first version.

ASCII control characters are out-of-band non-printing characters in a character stream. They are normally represented by a more readable mnemonic.