FileSize.htm 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>FileSize (filename$)</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. filename$ = any valid variable with path/filename
  13. </td>
  14. </tr>
  15. </table>
  16. <h1>Description</h1>
  17. <table>
  18. <tr>
  19. <td>
  20. Often it will be useful to return the size of a file. File size is important for copying, reading, and other file evolutions.
  21. </td>
  22. </tr>
  23. </table>
  24. <h1><a href=../2d_examples/FileSize.bb>Example</a></h1>
  25. <table>
  26. <tr>
  27. <td>
  28. ; Windows 2000/XP users will need to change location of calc.exe <br />
  29. <br />
  30. filename$="c:\windows\calc.exe" <br />
  31. <br />
  32. Print "The size of the file is: " + FileSize(filename$) <br />
  33. <br />
  34. Print "Press any key to quit." <br />
  35. <br />
  36. WaitKey()
  37. </td>
  38. </tr>
  39. </table>
  40. <br>
  41. <a target=_top href=../index.htm>Index</a><br>
  42. <br>
  43. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=FileSize&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  44. </html>