Arduino Mega + RFID+ SD Card

Hey,

I am working on mega controller and i need to open and read the file from the SD card.

when i am using RFID card, i want that chip id of the RFID card to be as a file name to open a file, store in SD card. but its not working after converting to string format too.
basically i am facing this issue in loop file system. on set up all function is work fine but on loop file system it showing error

some times: file dosn't exist.
: invalid (controller do not open the file)

Some clue as to the SD reader you are using would be useful.
Some code would be useful.