# file.open

Syntax

f = file.open(sname<,smode><,stype>)

smode indicates the open mode. It is a string that must match (as a command keyword) one of the following values:
• write: Open for write only.
• append: Open for write, but preserve the current contents of the file and start writing at the end.
• both: Open for read and write.
• rw: Open for read and write.
The save and json formats allow all FISH types except pointers, and preserve hierarchical data structures (lists of lists of maps etc.). The text type converts all entries to text strings on write, as if the string intrinsic were used. The fish type is restricted to bool, integer, float, string, vector, and tensor types.