anyone remembers the syntax of reading a file into C and subsequently printing it out?
for eg. i have the file 'matrix.txt'
the contents inside the file is as follows:
<matrix>
rows = 2;
cols = 2;
1 2
2 4
</matrix>
how do i read it into my C program and hence prints to screen this:
1 2
2 4
the matrix should also be able to recognise that the rows and cols take the value of 2.
thanks ;)