How can i write a function to acces a serial port and control timeout?
How am I supposed to know what you can do?(Just kidding)
Yes you can in C, C++ and ASM.(ok some other languages also).Do a few searches on http://www.google.com/ You will find something.
for more info, pls browse: www.cplusplus.com or msdn.microsoft.com (if you're using VC++)