read_bytes
来自「C实现的MUD,对大家基本入门网络游戏很有帮助!」· 代码 · 共 24 行
TXT
24 行
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)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?