• C

Writing a file from a com port

My problem is that I need to right a file being read from the com port of a DOS based machine.  The write program has to be a TSR program as I have to run another important program at the same time which cannot be closed down to receive the file.
Any ideas on how to do this??

ScotDance
ps. Code would be good if possible.
scotdanceAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MatthewLCommented:
Hi ScotDance;

I've got three questions.

1. Do you need help on the COM port i/o, TSRs or both?
2. Are you able to alter the other program?
3. How fast is the data coming in the COM port? (only applicable if you want help on the COM port i/o).

Matt
0
AlexVirochovskyCommented:
Very good code you can find in
http://www.snippets.org/serial.c
http://www.snippets.org/serial.h
I hope, it helps. Alex
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
scotdanceAuthor Commented:
MathewL,
1. On both.
2. Yes can alter the other program.
3. 9600 baud rate.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.