Java символ для окончания файла
String iHaveAnEof = "file ends here\u001a";
Grieving Gemsbok
String iHaveAnEof = "file ends here\u001a";