read_file
来自「C实现的MUD,对大家基本入门网络游戏很有帮助!」· 代码 · 共 27 行
TXT
27 行
rrrreeeeaaaadddd____ffffiiiilllleeee((((3333)))) MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444)))) rrrreeeeaaaadddd____ffffiiiilllleeee((((3333)))) NNNNAAAAMMMMEEEE read_file() - read a file into a string SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS string read_file( string file, int start_line, int number_of_lines ); DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN Read a line of text from a file into a string. The second and third arguments are optional. If only the first argument is specified, the entire file is returned (as a string). The start_line is the line number of the line you wish to read. This routine will return 0 if you try to read past the end of the file, or if you try to read from a nonpositive line. SSSSEEEEEEEE AAAALLLLSSSSOOOO write_file(3), read_buffer(3) Page 1 (printed 3/16/95)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?