func_file_stripslash.rst 508 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. .. _func_file_stripslash:
  2. ==========
  3. StripSlash
  4. ==========
  5. StripSlash -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. StripSlash$( path$ )
  10. Strip trailing slash from a file path
  11. #StripSlash will not remove the trailing slash from a 'root' path. For example, "/"
  12. or (on Win32 only) "C:/".
  13. Parameters
  14. ==========
  15. Return Values
  16. =============
  17. Nothing.
  18. Examples
  19. ========
  20. .. code-block:: blitzmax
  21. ' stripslash.bmx
  22. print stripslash("mypath/") 'prints mypath
  23. See Also
  24. ========