How was the file created? If a function like File::println() was used to write to the file, the 8 character string is followed by a carriage return AND a line feed. You are only stripping out the carriage return, leaving the line feed.
Actually to perform a test, I just copy all the data from Excel file and past on the .txt file, but I'll use the myFile.println to write to the file!
I'll write the code to write the file from Arduino and perform a test !
Just taking advantage, I'm tryind to send from TCP client requests like "Read" / " Write", in the code I used just "r" and I'll put "w"...
How can I change the follow part of arduino code to receive the entore string like "Read" "Write" istead "r" or "w" on this:
if (c == 'r') {
// Open the file for reading:
Thanks Again !