Filter löschen
Filter löschen

fid =fopen returns -1 when creating a new file

5 Ansichten (letzte 30 Tage)
Dominick Shinal
Dominick Shinal am 24 Feb. 2020
Kommentiert: Dominick Shinal am 24 Feb. 2020
fid=fopen('pressure_output.txt''w')
I'm trying to have this create a new file with the given name. The return value for fid is -1. How would I go about creating a new file this way?

Akzeptierte Antwort

Bhaskar R
Bhaskar R am 24 Feb. 2020
Bearbeitet: Bhaskar R am 24 Feb. 2020
You forgot the coma
fid=fopen('pressure_output.txt','w');
  1 Kommentar
Dominick Shinal
Dominick Shinal am 24 Feb. 2020
Ah you hate to post the question only to hear that you missed a coma

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Low-Level File I/O finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by