Hello there,
When i send the 88.9 kb text from computer to arduino, my program writes them into sd card. After that action, When i check the difference between the orjinal and copied file, i see they're not same. Also, when i check the two copied file, i see they not same either.
Open the file. Read any pending serial data, which is nowhere near the whole file, and write to the file. Close the file. Repeat, as the serial buffer overflows.
Not a good idea, really.
You need to send some character that means "Start storing this data in a file". You need to send the data. Then, you need to send some character that means "Stop storing the data in the file".
You should open the file, and spin in a while loop until the start character arrives. Then, you should spin in another while loop, reading and writing, until the end marker arrives.
PS. Pick up the pace. 9600 baud is a stone age speed.