text files: reading only last lines
windows: compilation fix attempt