Open a data file for writing.
The file is not truncated if it exists.
- Parameters
-
name | Name of the data file. |
text | Open as a text file if True (the default). |
dir | Create a directory if True, a file if False (the default). |
opened | Open or create the file if True (the default), report the name if False. |
packagename | Override the packagename. |
- Returns
- The opened file, or the name of the file or directory.
Definition at line 931 of file fhs.py.