End-of-file

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 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 a system-dependent negative number, commonly -1, which is guaranteed to be unequal to any valid character 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 MS-DOS filesystem has always recorded the exact byte-length of files from its very first version.

In the ANSI X3.27-1969 magnetic tape standard, the end of file was indicated by a tape mark, which consisted of a gap of approximately 3.5 inches of tape followed by a single byte containing the character 13(hex) for nine track tapes and 17 (octal) for seven track tapes. [http://www.loc.gov/marc/specifications/specexchtape2.html#mark] . The end-of-tape, commonly abbreviated as EOT, was indicated by two tape marks. This was the standard used, for example, on IBM 360. The reflective strip used to announce impending physical end of tape was also called an EOT marker.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • End-Of-File — En informatique, end of file (fin du fichier), couramment abrégé en EOF, est une condition dans un système d exploitation informatique indiquant qu aucune donnée supplémentaire ne peut être lue depuis une source de données. La source de données… …   Wikipédia en Français

  • End of File —   [Abk. EOF, dt. Dateiende], Dateiendezeichen …   Universal-Lexikon

  • End-of-file — Pour les articles homonymes, voir EOF. End of file (littéralement « fin de fichier » en anglais), couramment abrégé en EOF, est une condition dans un système d exploitation informatique indiquant qu aucune donnée supplémentaire ne peut… …   Wikipédia en Français

  • end-of-file —    Abbreviated EOF. A special code placed after the last byte in a file that indicates to the operating system that no more data follows.    An end of file code is needed because disk space is assigned to a file in blocks, and the file may not… …   Dictionary of networking

  • End of File — Mit EOF (End of File) wird das Ende einer Quelle signalisiert, welche in der Regel eine Datei oder ein Datenstrom ist. In ISO C können Datei und IO Operationen einen Wert zurückgeben, der dem symbolischen EOF entspricht und damit anzeigt, dass… …   Deutsch Wikipedia

  • end of file — failo pabaiga statusas T sritis informatika apibrėžtis Funkcija, kuria nustatoma, ar pasiekta failo pabaiga. Programavimo kalbose dažniausiai žymima eof. atitikmenys: angl. end of file ryšiai: sinonimas – rinkmenos pabaiga …   Enciklopedinis kompiuterijos žodynas

  • end of file — failo pabaiga statusas T sritis informatika apibrėžtis Ženklas, nurodantis teksto failo pabaigą. Jo ASCII kodas: 26 (dešimtainis) ir 1A (šešioliktainis). atitikmenys: angl. end of file ryšiai: sinonimas – rinkmenos pabaiga …   Enciklopedinis kompiuterijos žodynas

  • end-of-file — /end euhv fuyl /, n. Computers. See EOF * * * …   Universalium

  • end-of-file — /end euhv fuyl /, n. Computers. See EOF …   Useful english dictionary

  • End-of-file — …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”