Now uses filenum instead of line name.
Uses fopen