func_streams_loadtext.rst 635 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. .. _func_streams_loadtext:
  2. ========
  3. LoadText
  4. ========
  5. LoadText -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. LoadText$( url:Object )
  10. Load text from a stream
  11. #LoadText loads LATIN1, UTF8 or UTF16 text from @url.
  12. The first bytes read from the stream control the format of the text:
  13. [ &$fe $ff | Text is big endian UTF16
  14. * &$ff $fe | Text is little endian UTF16
  15. * &$ef $bb $bf | Text is UTF8
  16. ]
  17. If the first bytes don't match any of the above values, the stream
  18. is assumed to contain LATIN1 text.
  19. Parameters
  20. ==========
  21. Return Values
  22. =============
  23. A string containing the text
  24. Examples
  25. ========
  26. See Also
  27. ========