Quote Originally Posted by vin_pll View Post
what is the output of this program,

Code:
#include <stdio.h>
 
unsigned char pBuffer[1024];
 
FILE* pFile = fopen("com1:" , "r+b");
 
fread(pBuffer , 1024 , 1 , pFile);
 
fclose(pFile);
it openes the file successfully but after nothing displays what is the output what should be checked please tell me........
Well, the above code doesn't actually output anything, so that may be why. It also expects to read 1024 bytes - which may be more than you are transmitting, so it won't actually get out of the read function itself.

You still haven't answered what you have connected to COM1 - it doesn't pick up characters out of thin air, you know....

--
Mats