Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unix to PC 1

Status
Not open for further replies.

pweic

Technical User
Feb 4, 2001
3
SG
I am currently working on my final year project related to fortran 77. I encounter some binary (sequential) files created by Fortran 77 in Unix, but as I have only access to pc, I can't read the file at all.

So is there a way for me to convert the file to a text file in pc or read it using fortran 77 in pc?

Thank you
 
Some years ago I had a similar problem. When I used Pathway NFS to transfer Data to a unix File Server there was no more a Problem.

hnd
hasso55@yahoo.com

 
Ops, I think I made some mistake.

What I really mean is how to convert a fortran 77 binary file created in UNIX system to a text file or Fortran 77 binary file for use in Window 98.
 
In this Pathway package there is a tool called u2d (?). I means Unix to Dos. That is not a Problem of Fortran but a general Problem of Unix or Windows Files. If I remember correct on Binary Level it is only a Exchange of High and Low Word. But in this field I am not sure. It is to long ago.

hnd
hasso55@yahoo.com

 
The common FTP-Clients (WS-FTP, Cute-Ftp...) support this feature too. WS-FTP is free for personal use.

hnd
hasso55@yahoo.com

 
Hi,

Did you solve your problem? I have the same problem too!
If yes - tell me know how did you solve it!

Thanks,

Sergiy
 
You could open it as FORM=UNFORMATTED ACCESS=SEQUENTIAL. Read everything up to a linefeed and put it into a char array then use a formatted read from the char array.
 
Thanks xwb,

I found option CONVERT='BIG_ENDIAN' and put it into OPEN(). All work!

Thanks again.
Sincerely Yours,

Sergiy Slyeptsov
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top