Please help me write code

closed account (17MDjE8b)
I need help writing a code that will read numbers from a file to a array.This is a one dimenisonal array.
You're being extremely non-specific.
closed account (17MDjE8b)
I am suppose to read in 40 different numbers from a file named 'input file'.I am also suppose to store these numbers in a array in the way they are read in. I need help writing this code please. I know you use infile to read in, but how do you read and store in to a array.
If you have made an attempt, please post it.

If not, I'm not going to do this project for you...
closed account (17MDjE8b)
I dont want you to write the code. I just need you to explain how i need to go about it. Like i said i know how to read in the numbers but im not sure how to do it when i have to put them into a array.
Topic archived. No new replies allowed.