Splitting a .txt file by line
Hello
I'm not very familiar with C++, but I am trying to make a quick program for a very specific task. I know its not usually good to ask for a plug and chug solution, but thats what I am in need of.
I have a txt file with 10,000 lines, each with a single number ranging from 2 to 14. I simply want to throw all the numbers into an array so they can be called in a loop.
I've looked at the strtok() function but I'm not sure what I'd break by (what signifies a line break) and how I'd put each piece in an array.
I'm coming from PHP and C++ is a totally different world (obviously) so please be patient with me.
I am using Microsoft Visual C++ Express Edition.
Thanks for your help!