Use open() instead of file()