I am writing a small program, that get information from lines of a text file. A line content some fields:
name char[20]
heigh float
alt int
sex char (only a character 'w' or 'm')
A line look like: maron hugen 34.5 32 m.I don't know how to split up the date into different variable types. I have treid but it didn't work.