File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 371371% Write to file:
372372
373373if exist(cOutFile ,' file' )
374- delete(cOutFile ) % even though `fwrite` discards the file's previous contents, and there's a `clear`
374+ delete(which( cOutFile ) ) % even though `fwrite` discards the file's previous contents, and there's a `clear`
375375 % later, I delete the file initially here. I do it just in case: at some point I've
376376 % seen Octave run an old version of the compiled file after changing the source code (which produces
377377 % a new compiled file). I think this must a a file cache thing. (Even accidentally deleting a file
378378 % before attemtping to run it sometimes resulted in a successful run!) I'm not sure how helpful
379379 % deleting the file will be, though.
380+ % Initially the line above was `delete(cOutFile)`. I changed to `delete(which(cOutFile))`
381+ % following a conversation with Suever (https://chat.stackexchange.com/transcript/message/34122132#34122132)
380382end
381383fid = fopen(cOutFile ,' w' );
382384for n = 1 : numel(C )
You can’t perform that action at this time.
0 commit comments