1. kinds of operation
In general, there are several kinds of file operations as bellow.
(1) Create file/folder, Open file, Close file, Remove file/folder, path
(2) Read all data at a time; Write all data at a time;
(3) Read Line, read with cursor; write line, write with cursor
(4) Read and write with buffer and without buffer
2. impliments
The file operations of golang are implemented in package os.
(1) Create file/folder, Open file, Close file, Remove file/folder, path
(2) Read all data at a time; Write all data at a time;
(3) Read Line, read with cursor; write line, write with cursor
(4) Read and write with buffer and without buffer
3. conclusion
有疑问加站长微信联系(非本文作者)