Fortran files in C#?

  • Thread starter Thread starter not_a_commie
  • Start date Start date
N

not_a_commie

Is anyone aware of a .NET API to ease reading and writing Fortran
files? I want to load some Fortran files into my own structures. They
are a bit of a pain parsing with Regex because 1) they have like 200
fields, 2) some of the fields are files that may or may not be embeded
(using the Fortran $ operator), 3) some parameters are array sizes
where the data that follows is the data for the arrays, 4) Fortran
apparently allows you to specify the variable name if you want to
(otherwise it assumes that the data in the files is the same ordering
as your structure). Thanks for your time.
 
I guess I should clarify that I don't want to parse Fortran source
code, I want to load and modify Fortran-created IO files.
 
not_a_commie said:
I guess I should clarify that I don't want to parse Fortran source
code, I want to load and modify Fortran-created IO files.

Not having used Fortran myself, it would help a great deal if you'd
specify the file format. The origin of the data isn't really important
- the file format is.
 
hi,

not_a_commie said:
I guess I should clarify that I don't want to parse Fortran source
code, I want to load and modify Fortran-created IO files.
Why don't you write a bridge/converter in Fortran.Net?


mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top