- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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/
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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page