0

I'm trying to read a text file using textscan(fID,format). However, I get an error telling me Invalid file identifier. Use fopen to generate a valid file identifier. I used fopen to generate fID and got -1. I don't remember having ever seen an identifier to -1. Is it possible?

1 Answer 1

2

If fopen cannot open the file, then fID is -1.

Possible Causes :

  • Wrong File Path.
  • Corrupt File.
  • File doesn't exist
  • File already in use.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.