Can't open a file for reading

Noob question regarding reading files…

I created a text file using TextEdit and named it settings.txt in the same folder as main.lua

If I have:

local path = "settings.txt"  
local file = io.open( path )  

and I run this in the simulator then file is returning nil.

I’ve tried this too:

local path = system.pathForFile( "settings.txt", system.DocumentsDirectory )  
local file = io.open( path )  

and I get the same result.

Do I need to locate my somewhere “special” or do I need to create it in a certain way, set permissions, etc.

Help! [import]uid: 8353 topic_id: 2252 reply_id: 302252[/import]

Found the problem.

The file needs to be in {user}/library/application support/corona simulator/etc folder.
[import]uid: 8353 topic_id: 2252 reply_id: 6784[/import]