Thread Kommisches Zeichen am Ende der Zeile (26 answers)
Opened by Mathias at 2014-03-11 11:59

Raubtier
 2014-03-12 13:28
#174042 #174042
User since
2012-05-04
1054 Artikel
BenutzerIn

user image
Es steht in der Doku zu fopen: http://msdn.microsoft.com/en-us/library/yeby3zcb.a...

Zitat:
Quote
When a file is opened by using the "a" access type or the "a+" access type, all write operations occur at the end of the file. The file pointer can be repositioned by using fseek or rewind, but is always moved back to the end of the file before any write operation is carried out. Therefore, existing data cannot be overwritten.

The "a" mode does not remove the EOF marker before it appends to the file. After appending has occurred, the MS-DOS TYPE command only shows data up to the original EOF marker and not any data appended to the file. Before it appends to the file, the "a+" mode does remove the EOF marker. After appending, the MS-DOS TYPE command shows all data in the file. The "a+" mode is required for appending to a stream file that is terminated with the CTRL+Z EOF marker.


Einerseits: weird.
Andererseits: irgendwo auch logisch, da ja sonst der Marker ad absurdum geführt würde.
Last edited: 2014-03-12 13:31:46 +0100 (CET)

View full thread Kommisches Zeichen am Ende der Zeile