Now uses fopen.