Suppose my sss.txt contains.
#This is not taken
I am sanjay
i am samir
# you are good.
How can my program can read the sss.txt file so that it will not read the lines started with # and shows a error if there are blank line or blank lines in between the lines or there is a blank line or blank lines in starting of sss.txt file. (i.e.)no blank line or blank lines are allowed. If present then it will show a error message
"no blank line is allowed"