open (unit=10, file='excel.txt') write (10,*) 3.14159, char(9), 2.71828, char(9), 1.4142 close (unit=10) end
Thank you very muchWriting a true Excel file would be complex. I assume you're trying to write a comma delimited text file that Excel can then import. If you suffiix the file name with .CSV, Excell will assume it's a comma separated value text file. Otherwise, you'll have to select comma delimited file as the file type when you do the import.