Thread: Ignoring the Tab at the begining of the line..

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    249

    Lightbulb 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.
    Last edited by NANO; 05-03-2003 at 08:10 PM.
    C++
    The best

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading a buffer line by line, while using system read
    By Hammad Saleem in forum C Programming
    Replies: 9
    Last Post: 05-27-2008, 05:41 AM
  2. line number on a rich edit control
    By rakan in forum Windows Programming
    Replies: 1
    Last Post: 02-18-2008, 07:58 AM
  3. Adding Line numbers in Word
    By Mister C in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 06-24-2004, 08:45 PM
  4. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM