samedi 22 mars 2014

Reading Custom File Structures in C++


Vote count:

0




I have a text file with this structure:



[NODES]
0 0
2 2
3 0

[Elements]
0 1
0 2
1 2


I would like to read this file into 2 arrays: Nodes and Elements. Can someone help me with the code for this in C++? I'm clueless about how to instruct the program so it knows in which matrix it should write the data.


Thanks.



asked 3 mins ago






Aucun commentaire:

Enregistrer un commentaire