Gültige Abbruchbedingung für get
-
hi!
ifstream in; char c; while (in.get(c)) { ...ist obige abbruchbedingung ok so? oder muss ich noch was beachten.
man sieht auch oft while(in.eof()==false) und sowas ...
-
Wenn du byteweise lesen willst, ist das so in Ordnung.
zu eof, s.a. Beitrag von SeppJ in http://www.c-plusplus.net/forum/viewtopic.php?p=1762864#1762864