You can keep asking the same question, hoping to get an answer that satisfies you, but the correct answers have already been supplied. Serial ports do not embrace any concept of files. They are merely conveyors of bits and bytes. To understand the mechanics of passing streams of bytes through a serial interface, see the two HOWTO's regarding serial IO programming on
tldp.org:
http://tldp.org/HOWTO/Serial-HOWTO.html, and
http://tldp.org/HOWTO/Serial-Program...WTO/index.html There are several examples in the HOWTO's. It will be up to you to contrive a method of transferring the file-related data, plus any error checking, however this is simply a re-invention of a solution that has been done many times already. You could implement an already existing protocol, and the suggestions of Zmodem and Kermit protocols have been made. There are others, if you do just a little bit of research.
--- rod.