Sorry,
I think I should have described the problem clearer:
the textdokument looks like this:
ITEM: TIMESTEP
1
ITEM: NUMBER OF ATOMS
1000
ITEM: BOX BOUNDS
-1 1
-1 1
-0.1 2
[1......
2......
.......
999....
1000...]
ITEM: TIMESTEP
2
ITEM: NUMBER OF ATOMS
1005
ITEM: BOX BOUNDS
-1 1
-1 1
-0.1 2
[1......
2......
.......
1004...
1005...]
...
and so on...
I'd like to extract the number of atoms within different timesteps, which means:
I want to create an array, which stores all the values, that follow the string "ITEM: NUMBER OF ATOMS" in the text document (in the example it's the values 1000 and 1005).
Thanks very much for your help!
regards
Sebastian