How to handle empty txt files when reading data in Fortran 90?

  • Context: Fortran 
  • Thread starter Thread starter toni_2374
  • Start date Start date
  • Tags Tags
    Data Fortran
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
toni_2374
Messages
5
Reaction score
0
Hi
I have a problem with reading data in fortran 90. my programs try to read a txt file that only contains one number in it but if the txt file is empty it stops. i want to make it continue what should i do?
 
on Phys.org