# Write proc (datum)

Source: https://ref.dm-lang.org/datum/proc/Write

### Format
> `Write(savefile/F)`

### When
> Called when the object is written to a save file.

### Args
> F: the save file being written to

### Default action
> Write the value of each variable to a directory by the same name as the variable. Variables marked tmp, global, or const and variables which are equal to their initial value are skipped.

### See also
- [\<\< operator (savefile)](https://ref.dm-lang.org/savefile/operator/lessless.md)
- [Read proc (datum)](https://ref.dm-lang.org/datum/proc/Read.md)
- [initial proc](https://ref.dm-lang.org/proc/initial.md)
- [issaved proc](https://ref.dm-lang.org/proc/issaved.md)
- [tmp vars](https://ref.dm-lang.org/var/tmp.md)
