factor/extra/io/windows/files/unique/unique.factor

9 lines
244 B
Factor
Raw Normal View History

2008-02-29 18:44:53 -05:00
USING: kernel system io.files.unique.backend ;
IN: io.windows.files.unique
M: windows-io (make-unique-file) ( path -- stream )
GENERIC_WRITE CREATE_NEW 0 open-file 0 <writer> ;
M: windows-io temporary-path ( -- path )
"TEMP" os-env ;