I'm currently trying to open a file using io.open(file_name, "r")
My directory structure is
parent_dir
-src
-main.lua
-tests
-test.txt
I'm currently trying to open the txt file from the tests folder in the main.lua using
io.open(file_name, "r")
but it won't recognize the file as existing. If I place the absolute path into the file_name it works. I'm not sure how to format a relative path? I've tried some version of ../../../tests/test.txt
but I can't seem to get it to work.
The actual path of the file is something like /Users/user_name/parent_dir/tests/test.txt