Path: utzoo!attcan!uunet!cs.utexas.edu!sun-barr!ames!mailrus!uflorida!haven!uvaarpa!mcnc!ecsvax!dukeac!variyar From: variyar@dukeac.UUCP (Jayasankar E. Variyar) Newsgroups: comp.lang.fortran Subject: Re: Tab characters in output Message-ID: <1400@dukeac.UUCP> Date: 12 May 89 19:37:44 GMT References: <3101@lindy.Stanford.EDU> Organization: Academic Computing, Duke University, Durham, NC Lines: 16 In article <3101@lindy.Stanford.EDU>, GX.RAR@forsythe.stanford.edu (Buc Richards) writes: > > Can standard fortran output a tab character? That is if I want tab > delimited output to be read into a spredsheet, can I generate the > output using Fortran Write and Format statements? I have checked a > few references and did not find any answers. Thanks for the > assistance. The easiest way to do that is by defining a character variable . CHARACTER TAB TAB = 9 !ASCII equivalent of TAB Write(UNIT#,900)a,tab,b 900 Format(f10.4,a1,f10.4) etc.. This defenitely works on MACTRAN, a fortran compiler for the Mac Jay