Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Writing HTML files

chandrika
Beginner
591 Views
Dear members,
Is it possible for me to output information to an HTML file from fortran? Basically, I would like to write an array to a table to an HTML file...
Thank you for your assistance
Regards
Chandrika
0 Kudos
2 Replies
ingo_berg
Beginner
591 Views
Any language able create text files is able to write html files. Fortran may lack a lot of things but Last time I used it fortran was able to write plain text into files.

If you are looking for a magical function that turns your plain floating point array on the fly into a properly formatted html table. No there is none and will never be.

If you are looking for a library to create proper html code I dont know anyone, because html is just plain text and any lib is likely to be more complicate to use than just adding a few write statements for the html tags. So why should anyone want to use it?
If you are looking for an xml lib to create xhtml this should be possible but painful. (I refer you to the previous sentence)

http://cvs.sourceforge.net/viewcvs.py/xml-fortran/xml-fortran/
0 Kudos
larsm
Beginner
591 Views
For what it's worth: I put together a very small program that writes a real array in HTML format. Is it something like this you're after? Maybe it's something to start with? Otherwise just disregard it!
Best wishes
Lars M
0 Kudos
Reply