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:
rows = 2;
cols = 2;
how do i read it into my C program and hence prints to screen this:
the matrix should also be able to recognise that the rows and cols take the value of 2.