The existing library for the NES doesn't implement C file I/O. There are no hacks for the read() and write() routines.
read()
write()
To be more concrete, this limitation means that you cannot use any of the following functions (and a few others):