FileFlush Method |
Writes the file's buffer to disk. Flushing is automatically performed when the file is closed. This means you don't need to call Flush manually before closing a file using Close. Still, calling Flush can be used to ensure the data is safe even if the project crashes instead of being closed gracefully.
Note: Only call Flush when you actually need it. Otherwise, it will decrease performance due to constant disk writes.
Namespace: Godot
public void Flush()