Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!munnari.oz.au!diemen!sol!quan From: quan@sol.surv.utas.oz (Stephen Quan) Newsgroups: comp.lang.fortran Subject: WRITE don't do that too me! Summary: Need a variation on the WRITE statement that doesn't output a newline. Keywords: WRITE NEWLINE Message-ID: Date: 11 Sep 90 11:53:03 GMT Sender: news@diemen.utas.edu.au Distribution: comp Lines: 33 I am really a C fan, but I must say, over the couple of months programming in FORTRAN, I am beginning to enjoy it a bit. Anyway, I have a nagging problem that has lasted since I have started and was wondering if any of you FORTRAN gurus knew a simple (standard) FORTRAN method to do the following. Essentially, I am looking for the putchar(x) C-equivalent where x may be any character. I got close using (if I recall correctly) : eg. putchar(27) is almost : INTEGER I CHARACTER X EQUIVALENCE (I,X) X = 27 WRITE (*,100) X 100 FORMAT(A1) However, this isn't quite the same as putchar(c) because the WRITE command also adds a NEWLINE character, how can I suppress the NEWLINE character? The interest here, is that I'm trying to write some graphics routines in FORTRAN. At the moment, the only solution I can see is to store the codes into a string of some kind and output the string when a NEWLINE would be safe to output. Also, another question (about standard), in FORTRAN is it standard to have all commands in upper case. Recently, in maintaining somebody elses code, I changed the whole lot to lower case, the compiler accepted it, but then I compiled using the ANSI- mode and it gave errors indicating that I was not within the standard. Does the standard insist on uppercase characters? Stephen Quan. (quan@sol.surv.utas.edu.au) School of Surveying. University of Tasmania.