Re: Fortran to VB.net



Wade Ward wrote:
"Shawn" <saquisenberry@xxxxxxxxx> wrote in message news:1183408554.674446.108800@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thank you.
Had already gotten Open in VB.NET --> Fileopen(#, filename, etc..)
Close is similar --> Fileclose(#)

Rewind(kr(7)) --> Seek, #kr(7), 1 .
Forgot all about seek.

You can do anything w/ Format$() in VB shown here -- just more painful,
but it's doable...
I was afraid of that, the "more painful" part that is.

.Net switched to a more obj oriented method but still supports the
previous style for file management.
It sounds like you're getting it done. At the end I'd like to see what the Fortran was and what the VB became to compare alongside.

I suspect it will be quite similar w/ the exception of needing as pointed out to parse an input line manually if the input can't be modified to be comma-delimited or similarly made compatible w/ the VB input parsing rules (which don't include the ability to use a format string).

For procedural-only code, I've often described Fortran as BASIC w/ DO...ENDDO instead of For...Next. While there are other things like Format$() being a pita as compared to Fortran FORMAT statements, overall there's a very direct comparison in most parts of the language.

--
.



Relevant Pages

  • Re: IO_OPEN
    ... Doing this may take some understanding of Fortran and also of the data. ... "q" is a non-standard format descriptor and ... Each format descriptor ... The "a64" means read the next 64 columns into the filename variable ...
    (comp.lang.fortran)
  • Re: Write position
    ... But it's surprisingly hard to do in Fortran. ... the format correct to fill the record (including the newline sequence). ... NCOUNT = NCOUNT + 1 ...
    (comp.lang.fortran)
  • Re: Fortran is eating my brain
    ... Last few years of my life i have learned many languages (otherthan ... Nowadays i use perl python tcl etc for creating traslating and parsers ... first one writes the output file using fortran units wither in UNFMTD ... Once upon a time formatted data was only available if you used a FORMAT but then a variety of ways for having the system use some format, of its convenience, arrived. ...
    (comp.lang.fortran)
  • Re: speed up calculation suggestions
    ... Fortran matter. ... same internal formats - the ones that the CPU supports. ... the large majority of machines today use the same format. ...
    (comp.lang.fortran)
  • Re: Variable length/precision formats?
    ... I'm returning to Fortran after many years of C, ... is passed to the printfrather than being hardcoded into the format. ... request more features, the standard changes, and more ... vendor representatives were discussing "DEC VFE's". ...
    (comp.lang.fortran)

Loading