This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fortran help


On Thu, Jul 31, 2008 at 10:39:14AM -0700, Steve Kargl wrote:
> > 
> >       WRITE(*,*) "enter a string",TESTLEN," chars long"
> 
>         write(fmt, '(A,I0)') 'A', TESTLEN       
> 

Replying to self.  There is an error in t above.

         write(fmt, '(A,I0,A)') '(A,', TESTLEN, ')'      

Moral: test code before posting. :)

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]