func_file_writefile.rst 555 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. .. _func_file_writefile:
  2. =========
  3. WriteFile
  4. =========
  5. WriteFile -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. WriteFile:TStream( url:Object )
  10. Open a file for output.
  11. This command is identical to the #WriteStream command.
  12. Parameters
  13. ==========
  14. Return Values
  15. =============
  16. Nothing.
  17. Examples
  18. ========
  19. .. code-block:: blitzmax
  20. ' writefile.bmx
  21. file=writefile("test.txt")
  22. if not file runtimeerror "failed to open test.txt file"
  23. writeline file,"hello world"
  24. closestream file
  25. See Also
  26. ========