Problem
How can modern Fortran navigate a file with double forward slashes between entries, as in the *.obj format? The goal is to extract the vertex index (first entry) and ignore the vertex normal index (second entry).
Example
For example, for this snippet,
f 297//763 298//763 296//763
f 296//764 298//764 295//764
f 384//765 385//765 382//765
f 384//766 382//766 383//766
the goal is to create an array like this:
face ( 1 ) = [297, 298, 296]
face ( 2 ) = [296, 298, 295]
face ( 3 ) = [384, 385, 382]
face ( 4 ) = [384, 382, 383]
Extra points for an answer which would adopt to a richer format like
f a//b//c d//e//f g//h//i j//k//l
Other posts
The answer for [How to get Wavefront .obj file with 3 faces (traingle) points to a deleted blog. This post [How to read numeric data from a string in FORTRAN was not relevant.
References
Three references on the *.obj format: Object Files (.obj), B1. Object Files (.obj), Wavefront .obj file