Hello, I'm wondering if I can get some help with reading Fortran binary "unformatted" output files into R.
The Fortran output files were generated in Ubuntu 10.04 LTS using gfortran4.4, on a 32bit Intel Core 2 Duo 3.16 GHz machine, with little-endian and record marker lengths equal to 4. The machine I'm currently trying to read this Fortran output file is a Macbook Pro running Lion 10.7.3, on a 2.26 GHz Intel Core 2 Duo with 4Gb of ram. I'm running R 2.14.1. Based on whatever information I could gather from the web, I've been trying out the following code (the name of the Fortran output file is "header", located in the current working directory). > to.read <- file("header", "rb") > readBin(to.read, "integer", n=2, size = 4, endian = "little") Unfortunately, these commands return empty. Am I on the right track here? Is what I'm trying to accomplish here even technically possible? Any help would be greatly appreciated. Thanks in advance, Jooil -- Jooil Kim Postdoc Fellow Scripps Institution of Oceanography, UC San Diego Mailing address: 9500 Gilman Drive # 0244 La Jolla, CA 92093-0244, USA For FedEx/UPS: 8675 Discovery Way, Vaughan Hall Rm. 447 La Jolla, CA 92037, USA [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.