Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Text file path?

I know this is unnessesary to ask since Codea has the 'readText()' and 'saveText' functions but if I were using the io library to read a text file from "Documents:Data" for example, what would be the full path to the file?

Tagged:

Comments

  • dave1707dave1707 Mod
    Posts: 6,230

    Let me know if this doesn't work. Change abc.txt to your file name.

    file = os.getenv("HOME").."/Documents/abc.txt"
    
  • Posts: 15

    Works great
    Thanks!

Sign In or Register to comment.