FORTRAN 77 Language Reference

Quotes Editing ("aaa")

The quotes edit specifier is in the form of a character constant.@It causes characters to be written from the enclosed characters of the edit specifier itself, including blanks. A quotes edit specifier must not be used on input.

The width of the field is the number of characters contained in, but not including, the delimiting quotes. Within the field, two consecutive quotes with no intervening blanks are counted as a single quote. You can use apostrophes in a similar way.

Example: quote.f (two equivalent ways):


	WRITE( *, 1 ) 
1	FORMAT( 'This is a quote ".' ) 
	WRITE( *, 2 ) 
2	FORMAT( "This is a quote ""." ) 
	END 

This program writes this message twice: This is a quote ".