I have .txt file, and I want to read from it to char array.
I have problem, in the .txt file I have:
1 a
3 b
2 c
which mean that a[1]='a', a[3]='b', a[2]='c'.
How in reading the file, I ignore from spaces, and consider the new lines? Thanks