py-fortranformat icon indicating copy to clipboard operation
py-fortranformat copied to clipboard

Can it be written to stdout and a file also?

Open hopefulp opened this issue 1 year ago • 1 comments

I found that it is effective but it works only at interactive mode. Can you provide, if it works, an example how to write fortranformat to a file?

hopefulp avatar Oct 08 '24 07:10 hopefulp

The library doesn't deal with writing (or reading) files directly - it only deals with strings

To write a string to a file use the open function from the base Python language

brendanarnold avatar Oct 08 '24 20:10 brendanarnold