Noob needing help
Sorry I am kinda new to C as well as kinda new to the world of programming :\ I can only program in python so far.
Well, anyway i hope you can help me.
I have a .txt file that would be something like this..
A name followed by 2 numbers, and i want to store this information on an array so i can somehow work with it, 1 element of that array being each line. Maybe storing in 2 arrays would be better since there are 2 different types. Anyway. How could i do that?
Open the file and read each line into a char array -- ie, you would have a 2D char array:
Well, first you hit the books and read up on file i/o in C... try the exercises they give you, do the quiz program... repeat as necessary.
Originally Posted by Youthm
Then you sit yourself down and figure out exactly what you need to do --step by step-- to accomplish your goal.
Once you understand the problem... you can start working on designing the solution.
The last thing you will do is write source code.
So, "i want to store this information on an array so i can somehow work with it"... just ain't gonna get the job done.