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!

Search results for query: *

  1. anasso

    Truncate file at a position

    Hi again Having read through the documentation more thoroughly, it does indeed seem there is no standard way to make sure a direct access file is exactly N bytes long. I'll go with a short C function and some preprocessing directives for posix/win32/others.
  2. anasso

    Truncate file at a position

    Hi I'm writing what should be a portable Fortran library in Fortran 77. One of the routines should shorten a (direct access) file. For example, if a file is 100 bytes long, you should be able to throw away the last 10 bytes. In gfortran, I can open a file with record length 1, read record N...
  3. anasso

    Get binary file size in fortran (a solution)

    In thread214-1248457, guillaume asked how to find the size of a binary file in Fortran. I had excactly the same problem, but could not find a portable solution to it on the internet, so I post mine here in the hope that Google will list it. I made a binary search, using that the READ statement...

Part and Inventory Search

Back
Top