What I have done is: read the file line by line skip empty line, comment line, muiltiline comment lines close file Is it enough?