6v6gt:
Here is one possible issue:SoftwareSerial RFID(0,1); // RX and TXThis is a bad choice for software serial on a Uno because these are the hardware serial ports and these will interfere with each other.
If you still have problems, break the code in two parts and test each separately ( RFID handling and SD card code).
I have changed them with
SoftwareSerial RFID(2,3); // RX and TX and still didn't work. Do you have any idea?