how to write text file to root of HD

Richard Gaskin ambassador at fourthworld.com
Tue Jul 1 10:39:01 EDT 2003


RGould8 at aol.com wrote:

> I'm having a rough time trying to get Revolution to write a text file to the
> root of the user's hard-drive.   Wouldn't it be something like this?
> 
> put "\" & line 1 of the volumes & "\filetowrite.txt" into filetowrite
> 
> open filetowrite for write
> write "test" to file filetowrite
> close file filetowrite

It depends on the OS you're running.

Given the range of potential issues with file I/O, it's a useful habit to
check the result after opening a file.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.2: Publish any database on any site
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc




More information about the use-livecode mailing list