if( !file_exists("") ) { exit("File not found on line 145: customers.txt. Hope you weren't buying anything ..."); } else { $file = fopen("customers.txt, "r"); // rest of code here