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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by cpmillar

  1. cpmillar

    help with FORMAT command

    You could also write these values to a format string. character(len=30) :: fmtStr character(len=4) :: sN integer :: N . . . . write (sN, '(I4)') N fmtStr = '(1X,'//sN//'(F6.2,1X),2X,'//sN//'(2X))' write (6, fmtStr) data... Hope this helps, cpm
  2. cpmillar

    Outputting data in columns instead of a list in FORTRAN

    What is the data; all numbers?, text?. I'm assuming integer for simplicity. ios is assigned the error code from the i/o operation. a value of zero means no gliches, this allows you to read to the end of the file with no 'end-of-file encountered during read' errors. there is probably a far...
  3. cpmillar

    WHILE WRITING TO A FILE

    More than likely you are using list directed output: write (*,*) 'hello' or print *, 'hello' List directed output on some compilers prints a blank character first. To print directly (without blank charater)use explicit formatting : write (*,'(A)') 'hello' or print '(A)', 'hello'

Part and Inventory Search

Back
Top