mohammadsh
Technical User
I am trying to write program to just read the input of one commercial simulator and then I should try to write my own simulator.
the input of that software is in dat.file and I am trying to write a program to just read the input and allocate them in appropriate defined variable.
here is one part of inputIt shows that I have a cube cube such that nx=100,ny=1,nz=1)
DIMENS
100 1 1 /
I want to write program that when by reaching to the keyword "DIMENS" it should go to the next line and read first number as nx=100, second as ny=1 and third as nz=1
the input of that software is in dat.file and I am trying to write a program to just read the input and allocate them in appropriate defined variable.
here is one part of inputIt shows that I have a cube cube such that nx=100,ny=1,nz=1)
DIMENS
100 1 1 /
I want to write program that when by reaching to the keyword "DIMENS" it should go to the next line and read first number as nx=100, second as ny=1 and third as nz=1