HELP:: READ FROM FILE and PRINT!

I am trying to make a program that prompts the user for a file name and displays the contents of the file on the screen. The contents of the file must also be put in to at 2d array.

I have no clue where to start. Can someone please help me!
First break the problem down into steps.

1) Prompt the user for a file name
2) Display the contents of the file
3) Put the contents of the file into a 2 dimensional array

So for steps 1 and 2, research input and output streams.

It is unclear to me what you mean by putting the contents in the 2 dimensional array. Perhaps a view of the file would help.

Concentrate on getting step 1 done. The rest will come.
Last edited on
Topic archived. No new replies allowed.