I am trying to do a C program that will be able to grab data from an RS-232 port to a PC and then save whatever data into a text file.... The RS-232 port will keep sending its data out to the PC, so I need to overwrite the text file when a new data is sent to the PC. Can someone tell me how to program this in C?
Thanks...