issues in reading a file

hi,
the input file string is as follows :
x ( 21 22 3 4);

its assigning
a = ' ' instead of 21
b = 22
c = 3

how to ignore the space after '(' while reading it in buffer
read full line using getline till new line and tokenize the string. I would do this way.
i'm currently doing it using the extraction operator (>>)

ifs >> buf

Is there any way to set any flag to ignore the white space after "(" ?

Topic archived. No new replies allowed.