on 9/14/04 1:24 PM, Frank Spear at email@hidden wrote:
> Hello,
>
> I've recently upgraded to Absoft's F77/F90 for Mac OSX and discovered that I
> needed to change the line endings of all of my text files from Mac OS9 to
> UNIX - otherwise I get an "end of file" message when I try to read a text
> file.
>
> Does anyone know of a workaround for this (i.e. Is there a way to get
> Fortran to read all types of line endings in Mac OSX)? I can always convert
> my files, but I'm looking at many hundreds of text files to convert.
>
> Thanks
>
>
> Frank Spear
>
If you use Xcode as an editor, open the Fortran file, then Format>Line
Endings>Unix and save. For hundreds of files, it'll take a while. I'm sure
some Unix guru out there can figure out how to grep or perl a solution.
Several other editors (BBEdit, Jedit, Smultron, etc.) will do the same if
you look for the feature, but again you must first open the file.
Joe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Fortran-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden