In reply to dave_59:
Once again thanks for your kind reply.
Dave, $fgetc and $fscanf works fine here. But the code is only reading the input file partially.
My input file is ASCII formatted .raw image file. (Not binary or hex). Now your code is reading correctly
in necessary format. but the file pointer is not moving after a certain point. The file seems not corruptive , as i could
read it fully using VHDL file I/O operation.
How can i send the input file as attachment? Any means?