ES2 MUD LIB :: 東方故事二(ES2) 天朝帝國 mudlib 瀏覽展示

/doc/efuns/read_bytes

HOME :: doc :: efuns :: read_bytes

     rrrreeeeaaaadddd____bbbbyyyytttteeeessss((((3333))))          MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444))))           rrrreeeeaaaadddd____bbbbyyyytttteeeessss((((3333))))

     NNNNAAAAMMMMEEEE
          read_bytes() - reads a contiguous series of bytes from a
          file into a string

     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
          string read_bytes( string path, int start, int length );

     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
          This function reads 'length' bytes beginning at byte #
          'start' in the file named 'path'.  The bytes are returned as
          a string.  Note that (start + length) must not be past the
          end of the file or else read_bytes will fail.  If the second
          and third arguments are omitted, the entire file is
          returned.

     SSSSEEEEEEEE AAAALLLLSSSSOOOO
          read_file(3), write_bytes(3)

     Page 1                                          (printed 3/16/95)

HOME :: doc :: efuns :: read_bytes