I have a text file containing data that I need to access within a module. Does anyone know how to open a file (location is root (/)) and read a line at a time, until the end of the file is reached in a module?

I tried using sys_open() and sys_read(), but they don't seem to work.

Any help would be appreciated.