Where is said file located within the project's structure?
Make sure to verify if a file exists (and can be seen by the game) using file_exists before trying to access it.
Try using "rooms.txt" as the file path if the file is in the root folder of your included files. Path finding on the target platform's file system is automatically handled, you do not have to specify an absolute file path.