Hai, I want to read data from file and print the contents of the file.While reading it must ignore the blank lines and comment lines.How to do this?Pls help me.
if u r reading the file character by character..ignore the character read whenever there is a space ...tab...newline..or any other white space ... and if u store the contents in a buffer then traverse the buffer and remove whitespace before printing it .. to remove comments u should know what a comment in your file looks like.. can a comment be multi-line comment or will it be a single line comment...