RosettaCodeData/Task/Create-a-file/Lingo/create-a-file-2.lingo
2023-07-01 13:44:08 -04:00

6 lines
242 B
Text

-- 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")