Datalogging telnet session to sdcard

is the problem that it closes the file before it reads more than 1 character?