[mod.computers.vax] system calls?

NU043109@NDSUVM1.UUCP.UUCP (02/09/87)

         Is there any way in which a certain number of bytes  to/from
a disk file be transferred ? The number of bytes and the starting location
of the file should be 'specify'able. All the information including the
length of the record etc should be transferred. In other words, the buffer
should look like a 'dump' of the file from a given location to another
location. I find that there is system routine mapping the file, but
the mapping is in terms of blocks (512 bytes)
          What I am ultimately attemting to do is this:
              1) Take a file and create a file which will have a fixed
record size (80 bytes). The new file will have the first few records as the
information about the original file (like the rec type, rec. length, file name
etc.)
followed by the exact copy of the original file. This file could be sent by
mail across any network.
 
               2) From this file recreate the original file using the
information in the the first few records of the 'created' file and copying
exactly the portion of the created file.
 
                If there is any pd version of code doing these operations,
I will be thankful for a copy. Otherwise, please advise me of any method of
transferring data from file (mentioned in the first para)
 
                                     Thanking you,
                                     K. Sankara Rao
                                     nu043109@ndsuvm1