When specifying the path, if the file does not exist, it will be created automatically
If you repeatedly add data to the file, it will overwrite the original data (overwrite from front to back) instead of appending data.
Provides the seek() method. This method calls the pointer to implement the file insertion operation. Other streams either use the append() method to append to the end of the file, or overwrite it directly.
Application scenario, the download function of resuming the download of Thunderbolt, two temporary files will be created before downloading, one is an empty file with the same size as the downloaded file, and the other is a file that records the location of the file pointer. Each time it is paused, The pointer of the last time will be saved, and then when downloading at a breakpoint, it will continue to download from the place where it was last time, thus realizing the function of downloading or uploading at a breakpoint.