Open and Reading all the data in a txt file
Hello,
I have a simple .txt file with several node id and coordinates of each node displacement in x,y,z
After open it with fopen command I want now to ensure I'm reading all all the data of the file not just the first line.
If I use the fscanf command I'm just reading the first line of my file right?
Do I have to create any logic or looping command or I have to create a general structure to read the file?
Many thanks.
Hi,
See if this script can help you. I am using textscan.
Cheers,
Lorenzo
Unable to find an attachment - read this blog