Sending a file from PC to Arduino using Gobetwino

You seem to be sending the GoBetwino command string and then reading back the first character of the response, and then requesting the next line. You need to wait until you have received the complete line before you request the next line.