Ignoring the Tab at the begining of the line..
Ignoring the spaces and the Tab.
Hi guys,
I am writing a C++ program under Linux, in this program I am reading a file, and I want to ignore the Tab and comments ( the line which start by #).
I solve the problem with the comment lines, but how can I ignore the TAB at the beginning of some lines.
Code:
File1.txt
#This is the first part
Command1. ! subcomment
Command2.
Command3.
Command4
#This is the second part
Command5 ! subcomment
Command6
#The End.
Thank you for your help.