RosettaCodeData/Task/Create-a-file/Lingo/create-a-file-2.lingo

7 lines
242 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
-- note: fileIO xtra is shipped with Director, i.e. an "internal"
pd = the last char of _movie.path -- "\" for win, ":" for mac
_player.itemDelimiter = pd
vol = _movie.path.item[1]
fp = xtra("fileIO").new()
fp.createFile(vol&pd&"output.txt")