Put
expr>>filename writes expr to a file.
Put[expr1,expr2,…,"filename"] writes a sequence of expressions expri to a file.
Put["filename"] creates an empty file with the specified name.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.