[Solved] Read in a certain line only? [closed]


You can mark lines you don’t want to read with some character or a number, so whenever input stream reads it, you can skip it.

0 This is a test configuration text file
0 It isn’t supposed to read this line or the line above it

1 Read this line, but not the white space above or below it

0 Don’t read this line or the white space above or below it

0 Read this line, but not the white space above or below it

Then check value in first place of every line and skip it/ read it.
Or use something like multiline comments in C /* commented out */ check for opening character and skip everything before closing character.

solved Read in a certain line only? [closed]