RosettaCodeData/Task/Create-a-file/Lingo/create-a-file-2.lingo
2016-12-05 23:44:36 +01: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")