Go Down

Topic: Duplicating a .bin file (Read 772 times) previous topic - next topic

dfontaine

Hello folks,

I'm wondering if anyone ever encountered/used a function that would make a copy of a .bin file on the SD card.

i've tried out a simple
Code: [Select]
  do {
    byte byteTfer;
    byteTfer = myFileIn.read();
    Serial.print(myFileIn.read());
    myFileOut.print(byteTfer);
    }
    while (myFileIn.available());

but it doesn't seem to work with .bin

thanks

wildbill

Try write instead of print.

dfontaine

If only it was this simple...

wildbill


dfontaine

-1 or only 0 shows up on the serial, the file itself stays empty

wildbill

Best post the whole sketch then.

Go Up