3 Replies - 308 Views - Last Post: 10 August 2019 - 07:53 AM Rate Topic: -----

#1 renzimana   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 10-August 19

how can read from a file ans store it in Struct

Posted 10 August 2019 - 07:30 AM

hello everybody,
I am a first year student studying computer Science and I have an Assignment about creating a function that reads several files into their respective arrays and each files should also have its individual structs. But I don't know how to do that, if any one could give me steps to follow I really need help here because my assignment is due on the 17 of this month.

thankyou all and waiting for any response

regards

Is This A Good Question/Topic? 0
  • +

Replies To: how can read from a file ans store it in Struct

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15215
  • View blog
  • Posts: 60,898
  • Joined: 12-June 08

Re: how can read from a file ans store it in Struct

Posted 10 August 2019 - 07:33 AM

What have you tried,thought about, or considered?
Was This Post Helpful? 0
  • +
  • -

#3 renzimana   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 10-August 19

Re: how can read from a file ans store it in Struct

Posted 10 August 2019 - 07:45 AM

hi Modi,

I have already create each functions of the files and stored them in their respective arrays but I cannot creat struct for each. should I create struct for each files before read it into the functions or please give me some ideas

thanks
Was This Post Helpful? 0
  • +
  • -

#4 jimblumberg   User is online

  • member icon

Reputation: 5745
  • View blog
  • Posts: 17,601
  • Joined: 25-December 09

Re: how can read from a file ans store it in Struct

Posted 10 August 2019 - 07:53 AM

You talk about "files", exactly what do these "files" contain, please show a small sample of each file.

Quote

I have already create each functions of the files and stored them in their respective arrays but I cannot creat struct for each.


Okay, let's see what you have. Please post your code (inside code tags).

:code:

Why can't you create a struct?

Jim
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1