Typically, a file does not load into memory when it is opened. Instead, parts are loaded for each reading; due to all kinds of buffering, large chunks that you request in each fread can be loaded.
When you fwrite some data, it is eventually copied to the kernel, which then writes it to disk (or anywhere) after buffering. In general, you donβt need to download part of the file for recording.
Fred foo
source share