Navigation:  Introducing thinBasic >

Example 2

Previous pageReturn to chapter overviewNext page

 

Exactly the same as Example 1 but with only one line of code

 

'----------------------------------------------------------------------

 

USES "FILE"   'Tell thinBasic you need "FILE" module

USES "OS"     'Tell thinBasic you need "OS" module

 

'Copy "Test.txt" file from script directory to operating system temporary directory

FILE_COPY ( APP_SOURCEPATH & "Test.txt", OS_GETTEMPDIR & "Test.txt" )

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com