Uses filenum and fopen instead of filename.