I'm not sure of all the steps you need to follow to achieve what you are trying to do, but I would suggest you follow my previous advice and study the CImage class and its members to see what functions are available to create your bitmap and save it to a file. You could also search the articles here on CodeProject and Google for sample code.
I just saw this article[^] which contains some useful tips.[/edit]
Can we a read a particular line(any line, not from the start or not continuously from a line to the end of the file) at a file using fscanf? I want to discard lines other than that particular line.
I recommend to just read each line it is, and then check each line until you find the one you want, unless of course as the poster above states, you know how many lines it is in then just fgets until you have reached the required line, but this is not a very good method imo.
while not end of file
if line is not correct then discard elsedo some processing on this line