moving files

BlitzMax Forums/BlitzMax Beginners Area/moving files

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

How do I move a file from one dir to another one?

Not talking about reading a file with readfile() and writing it to a new file again with writefile() .. (=slow) I mean the native way, like how windows (or whatever OS) does it.. the fast way.

If someone has a function (not a method!) suggestion, please in this format:

Movefile sourcefile$,destinationpath$

..with everything local, no globals :P