Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

Saving Text with Apostrophes

sumitm
Beginner
692 Views
Hi,
This looks relatively simple but I need to save some text with apostrophes. I tried

write(botname,'(A15)') ' "New Bottle"  '    
open(18,FILE="bottle1.bt1",status='replace')
write (18,*) '&BottleInput'
Write (18,*) 'BottleName=',trim(botname)

but that does not seem to work.

In the output file (bottle1.bt1) I need a line that reads like
BottleName= "New Bottle"

Thanks for any help
Sumit
0 Kudos
2 Replies
Steven_L_Intel1
Employee
692 Views
Add DELIM="QUOTE" to the OPEN.

Steve
0 Kudos
sumitm
Beginner
692 Views
Thanks!
0 Kudos
Reply