I have these a file in a c program which consist of a string and 4 doubles and 2 integer in one line and there is a total of 28 lines, i want to read this file and load the data into an array. can someone help me solve this.
-
4Is this homework? Please show us what you have tried so far.Péter Török– Péter Török2010-05-19 13:29:04 +00:00Commented May 19, 2010 at 13:29
-
1You don't have the "file in the C program". You might have the file, and need to write a C program to load the file and do something with the data in it, though. Your program will be a separate file.unwind– unwind2010-05-19 13:31:41 +00:00Commented May 19, 2010 at 13:31
-
Is the same data in the same place on each line? I.e. each line looks like this: string double double double double int int ? Additionally, do you want just one big array of doubles without context of what line they came from, or do you need to be able to relate doubles to strings, int's to doubles, etc? This question is almost ambiguous enough to be closed.user50049– user500492010-05-19 14:21:38 +00:00Commented May 19, 2010 at 14:21
Add a comment
|