storing a file data in an array - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

storing a file data in an array

dino1992dino1992 Posts: 6Member
my program discription is below i need to know how to store the rank, names in ana array either single array or 2d array .. anyone has an idea how to do it ?

please i need the help asap !! thank u

The text files USPopularNames2010.txt, contains a list of the 1,000 most popular boy and girl names in the United States for the year 2010 as compiled by the Social Security Administration.

These are blank-delimited files where the most popular boys and girls name is listed first, the second most popular boys and girls name is listed second, and so on, to the 1,000th most popular boys and girls name, which is listed last. Here is an example of one line: of the input file

30 Liam Sarah

This indicates that the 30th popular name for boys is Liam and for girls is Sarah
Note the first line of the file contains a description of the data, so you really want to skip reading the first line of the input file.


What you need to do:
Sign In or Register to comment.