fid =fopen returns -1 when creating a new file

2 visualizaciones (últimos 30 días)
Dominick Shinal
Dominick Shinal el 24 de Feb. de 2020
Comentada: Dominick Shinal el 24 de Feb. de 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?

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Low-Level File I/O en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by