Homework with files

I need to create a program that reads in records from a file directory of teachers and output that info. Each record consists of an id with 8 characters,
a full name (first and last) 30 characters,
a department id with 4 characters,
a phone number with 14 characters.

These include the terminating factor...
I guess i need to use getline() to read them all in

I need to write a function that will open the file and read the records into an array of the structure data type

I also need to write a function that will output the array. There are fields that are 22 spaces and 28 spaces wide.

Someone please help me....
Last edited on
you can contact at c_c_p_l_u_s_p_l_u_s._c_o_m

please remove '_'. sorry..
Last edited on
Topic archived. No new replies allowed.