First hello, this is my first post here :)
My problem is basically the fgets function. I need to get all the lines from a file to a certain point in an array, and what comes next in another array.
Let me show you:
The file looks like this:
Biology:
Cate oase sunt in corpul uman ?
Cati cromozomi contine o celula umana ?
Ce se afla in dreptul tamplei ?
Ce controleaza cerebelul ?
Care este cel mai lung nume al unui os din corpul uman ?
Care emisfera controleaza partea dreapta a corpului ?
Care glanda controleaza hormonii de crestere ?
IT:
Cati MB contine un GB ?
In ce se masoara dimensiunile unui display ?
end
If it seems a strange language, it is in Romanian (building it in Romanian before the English version xD)
So, the thing is, it doesn't stop when it finds IT:, but it writes it down in the vector, so when I cout I can see exactly the same data as in the file, including IT:, Biology: and end...