Thanks (Read Fixed Format Data) [message #1351] |
Wed, 25 August 1993 09:42 |
jianhua
Messages: 2 Registered: August 1993
|
Junior Member |
|
|
I got many answers after I post my problems. Amolst all the answers can solve my problems. Thanks to all of you.
Here I post one answer, hope someone has the similar problem may have some use.
> When reading inputs, PV-WAVE can't look for a specfic substring, like
> ' TT=' Putting an explicit character string in a format statement is
> something you can only do when writing.
>
> The easy way is to just tell PV-WAVE to skip the ' TT=', since you're not
> interested in reading it in the first place. Do this by changing the readf's
> format string:
>
> readf, 1, TT, format="(4x,f5.2)"
> ^^-This tells PV-WAVE to skip 4 characters (including
> spaces) before looking for the floating-point number.
Best wishes. Jianhua
|
|
|