Octave save/load. How does CodeRunner handle them?

Octave save/load. How does CodeRunner handle them?

von Juha-Matti Huusko -
Anzahl Antworten: 2
Hello,

How does CodeRunner handle save/load? Does it really save the files in the sandbox during the evaluation of student's code and then remove the files?

Student code is
a=5;
save data1.mat a
a=6;
load data1.mat
a

And the output is
a=5


Als Antwort auf Juha-Matti Huusko

Re: Octave save/load. How does CodeRunner handle them?

von Richard Lobb -
Jobe creates a temporary working directory for a task, loads any author or student supplied attachments into that directory together with the program itself and then runs it in the normal way. After which the working directory is deleted.