i need to do the follwoing i will create a thread
which will contineously read data from serial port and
will dump it in a file. Second thread will contineously read this data
and compare it with the previous data in the same file if there
is any change it will set some flag.Basically i don't know much
about file handling, could somebody suggest as how to do it?