Path: utzoo!attcan!uunet!husc6!ukma!rutgers!att!cbnewsc!danl From: danl@cbnewsc.ATT.COM (daniel.r.levy) Newsgroups: comp.lang.fortran Subject: Re: Tab characters in output Message-ID: <755@cbnewsc.ATT.COM> Date: 12 May 89 04:27:21 GMT References: <3101@lindy.Stanford.EDU> Organization: AT&T Bell Laboratories Lines: 26 In article <3101@lindy.Stanford.EDU>, GX.RAR@forsythe.stanford.edu (Buc Richards) writes: > Can standard fortran output a tab character? (Please pardon the net answer. Reply mail wanted to send to lindy!news which doesn't look right, and doesn't explain how to get to forsythe.stanford.edu) If you are using FORTRAN-77 and an ASCII character set, there's an easy way. Print char(9) (9 is the ASCII value of tab) with an A1 format descriptor. E.g., THIS=1.3 THAT=9.5 THOTHR=4.8 WRITE(6,10)THIS,CHAR(9),THAT,CHAR(9),THOTHR 10 FORMAT(1X,F9.3,A1,F9.3,A1,F9.3) which will print as 1.300 9.500 4.800 -- Dan'l Levy UNIX(R) mail: att!ttbcad!levy, att!cbnewsc!danl AT&T Bell Laboratories 5555 West Touhy Avenue Any opinions expressed in the message above are Skokie, Illinois 60077 mine, and not necessarily AT&T's.