How can I open a file to receive data from serial port COM1/2 How to set the parameters of the port: Baud, Parity, .. etc How to input a bit (cahacter from the file) after openned.