OpenWrite
OpenWrite["file"] opens a file to write output to it, and returns an OutputStream object.
OpenWrite[] opens a new file in the default area for temporary files on your computer system.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.