Datalogging telnet session to sdcard

obviously not in the loop like that.

Obviously. It is also obvious that you did NOT read, understand, or follow, or all of the above, my previous post.

Open the file. Loop to read all the data. Close the file.