Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: ARR86
  • Order by date
  1. ARR86

    Reading a text file without knowing the number of columns of data in Fortran 77.

    I think my earlier comment was misunderstood.The thing is i am transferring the code from matlab to fortran. I don't have problem in the logic part which is 90% moved to fortran. I am having problem in reading and writing the data, especially multidimensional array. I dont have any issues in...
  2. ARR86

    Reading a text file without knowing the number of columns of data in Fortran 77.

    Hi Thank you all for the replies. I was busy with my exams that is why i could not thank you earlier. The file i want to read contains real data with two spaces as delimiter. Once i find the number of columns in the file,how can i read and store it in a array?. What syntax of the format...
  3. ARR86

    Reading a text file without knowing the number of columns of data in Fortran 77.

    Hello All I want to read a file that can contain different number of columns of data everytime in Fortran 77. i.e. I dont know the number of columns beforehand.If I know the number of columns,I can read the file like this way SUBROUTINE varread(TNo,X,Y,Z,VARL) IMPLICIT NONE...
  4. ARR86

    Reading a .txt file

    I have written a program but it reads only the first line. I dont know how to make it return again and read the next line. Here it is PROGRAM nodes1 Integer K,N double precision XPOS,RAD OPEN(25,file='nodes_cylinder.txt') WHILE(K.NE.-1) DO...
  5. ARR86

    Reading a .txt file

    I am a novice in fortran programming.I want to read text files containing three columns of data ( one integer and 2 real. Each file contain data of different lengths.Could someone please help me by providing the code?. Below is the data from one of the files to be read. 1 0.0000000E+00...

Part and Inventory Search

Back
Top