Duplicating a .bin file

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

  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

Try write instead of print.

If only it was this simple...

What do you get?

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

Best post the whole sketch then.