From Xojo Documentation
|You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!|
Creates a text file for so that text can be written. The write is done by calling Write or WriteLine. Call Close when you are finished writing to the file.
If the file exists, it will be erased and recreated.
An IO error will trigger an IOException.
This code writes text from a TextField into a file: