![]() |
reading data from a file
i got a file which has many data and i need to read it into fields of a Graph struct in an effective way, this means i dont want to be waiting 1hour :P
Each line of the file has info about a node in the Graph. (i hope u know whats a graph struct :D) if i read it from the top to the bottom, well i might have some core dumps or have to wait 1h .. so i need u to post some suggestions in order to solve this prob. tks |
We can help if you post the code you already have.
|
my structs are:
Code:
typedef struct Graph *graph;inputs ... ..... outputs ..... ..... nor delayTime output num_inputs input1 input2 input-n nand delayTime output num_inputs input1 input2 input-n ..... ...... ..... /* well its a logic simulator so u see nand, nor .. etc */ |
| All times are GMT -5. The time now is 05:39 AM. |