i am very new to the whole programming thing in general and just learning the basics of syntax etc of the C programming language. I am currently trying to complete an assignment for school that at this point seems nearly impossible, though im sure its all easy as pie for you guys. So without further ado heres my simple issue.
I have a file that holds a value on each line eg.
what i need to do is, create an array and read each value from the input file and store them individually in a different element in the array. Now i know this may seem overly simple to actually bother with, however i would greatly appreciate any help given. Ive gotten to the point of creating ] the array and opening the file so it can be read, however after that point the actual scanning (fscanf i guess would be used) and storing of the values into the array is all a mess to me.