read_bytes(3) MudOS v21c2 (5
Sep 1994)
名稱:
read_bytes() - 從一個檔案或是一個字串讀取一連串連續的位元組
(byte).
語法:
string read_bytes( string path, int start, int length );
字串 read_bytes( 字串 path, 整數 start, 整數 length );
用法:
這個函式讀取 path 指定的檔案內容, 從 start 指定的第幾位元組開始讀取到
length 指定長度的資料. 傳回的位元組為字串的型態. 注意, start + length 的大小絕對不可以超過檔案的末端,
否則 read_bytes() 讀取的動作會失敗. 如果不指定第二及第三個參數, 則會讀取整個檔案.
參考:
翻譯:
Spock @ FF 97.May.24. (printed 3/16/95)
回到上一頁