I wish to write a code which parses a file which contains the following info (say)
(some electrical engineering problem)
R1 1 2 20
V1 1 2 40
R2 4 5 35
V2 4 5 60
..
.
.
(n such lines)
i have to incorporate doubly linked link lists
where the delimiters being the whitespaces,
i have to construct n such nodes with the corresponding elements going as the data variables in the linked-list stucture which i would define earlier.
i can parse the file.. but am not able to correctly use the strtok() function to separate the elements and inserting them into the proper structure data variables
How to go about it? some codes would be highly appreciated