Errors while using Input Framework

Hello, I am trying to use Input Framework in a script to analyze a specific file, and when I execute the command zeek main.zeek I get the expected output. However, when I try to read a file using this script, running zeek -Cr /path/to/file /path/to/main.zeek, I get the following error message:

1725480452.149274 warning: ./domains.txt/Input::READER_ASCII: Init: cannot open ./domains.txt

I would like to know the possible reasons for this error, and how I could solve it. I attached an image containing the script that I am using.