base64 encoding .txt file

Which SD library are you using? According to the SD.open() reference page for the standard SD library, you can only have one file open at a time.