remove old mopen behaviour of matfile2sci 26/18926/2
Antoine ELIAS [Sat, 21 Jan 2017 12:24:47 +0000 (13:24 +0100)]
Change-Id: Iedbe06b47b7aa6f0d2d70fd2f08f9b4f0c9708aa

scilab/modules/m2sci/macros/matfile2sci.sci

index 21d96e2..22b1224 100644 (file)
@@ -50,7 +50,7 @@ function matfile2sci(mat_file_path, result_file_path, overwrite)
 
     //Wipe file if overwrite is true and the output file previously existed
     if isfile(fdo_path) & overwrite
-        fdo = mopen(fdo_path, "wb");
+        deletefile(fdo_path);
     end
 
     //-- Read first variable
@@ -74,10 +74,6 @@ function matfile2sci(mat_file_path, result_file_path, overwrite)
         end
     end
 
-    if exists("fdo")==1
-        mclose(fdo);
-    end
-
     //--file closing
     matfile_close(fdi);
 endfunction