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

Cannot print the '/' character

Status
Not open for further replies.

kontheo

Programmer
Dec 6, 2009
1
GR
Hi,

I ve got a file that i m trying to print in fortran 77
that has a column of words. e.g.

one
two
three
four
fiv/e
si:x

My problem is that it can't print the "/" and
the rest of this line.

I need this to be printed because the real file that i want to print has a date in this format dd/mm/yyyy

the format that I use to print it is:
format(1x, a6)

I would appreciate any help
 
Don't quite understand the problem.

dd/mm/yyyy is 10 characters. Not sure what printing with A6 would do.

If you have tried

print *, 'fiv/e'

and you get five, / might be escaped on your compiler. Try

print *, 'fiv//e'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top