I need to read some files, ofc, using language C.
Let's say i have a file withe N lines, with every line containing data in the following patern (some random strings and numbers)
6.5.2004 312*** 01:06:12 01:07:22 70 1 7.5.2004 312*** 22:16:28 22:24:22 474 2 17.5.2004 0113027*** 23:10:53 23:14:57 244 1622.5.2004 99359888556*** 19:32:23 19:33:47 84 65
so, i read the file and i need to make an output file, with aligned data, in form of
312*** 70 312*** 474etc
so, my question is how do i align numbers in the right column?
how do in general read a lot of spaces or TAB signs, using fscanf?
EDIT:
forum seems to swallows the space signs between numbers... anyway between every "block" of words is a number of space signs >1