how i can transfer and receive file in any format over serial port

helo
i m using fedora core 6 o.s.
i want to develop application using c,c++ which transfer file in any format(like pdf,txt,doc etc) over the serial port and i want to receive the same file from the serial port
please guide me.
amit

The below how-to describes serial ports communication and its POSIX implementation.

Serial Programming Guide for POSIX Operating Systems

Best regards,
Iliyan Varshilov

(a) serial ports are not reliable, characters can get dropped and bits corrupted so you need a protocol that will handle error detection and retries

(b) this has all been done before, either choose an implementation that already works and move onto things that have not been done, or choose an existing protocol and implement that, hence you will be able to work with other machines already using those protocols.

(c) Have a look at UUCP, XMODEM, Kermit

(d) Have a look at SLIP, PPP

thx for replying me.
Sir actually i m new in this serial port communication.
now suppose i want to transfer any format file over serial port using kermit protocol then how can i use it in my application. i mean how can i implement kermit protocol
and how i use in my c++ application
Regards,
Amit

Searching on google would have provided links like this one, which will help you along.