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 on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Saving Text with Apostrophes

sumitm
Beginner
650 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
650 Views
Add DELIM="QUOTE" to the OPEN.

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