Datalogging telnet session to sdcard

Post you whole code. Check also if closing the sdcard file after sending each character is a good idea.