lulu: Funktionsweise von fgets() - RTFM

Beitrag lesen

Hallo

Wenn ich
$txt = fgets($dataFile, 1000000);
eingebe, sind in dieser Variable aber nur ca. 35 Zeichen drinnen, warum?

RTFM
<quote>
string fgets ( resource handle [, int length] )

Returns a string of up to length - 1 bytes read from the file pointed to by handle. Reading ends when length - 1 bytes have been read, on a newline (which is included in the return value), or on EOF (whichever comes first).
</quote>

Die entscheidenden Textstelle ist "whichever comes first"

Viele Grüße

lulu

--
bythewaythewebsuxgoofflineandenjoytheday