Hello everyone,

I'm working on a project which I should read from a text file. Text file contains two lines of sequational numbers, something like this:
4 5 2 1 10 8
3 4 6 1

In the program, I need to find out where exactly a new line begins (after 8 in the example). I've heard of '\n' character but not sure how to use it for this purpose.

I thought something like that:

char num[5];