Log files in MAGMA

954 Views Asked by At

At Uni, we are using MAGMA. I'd like to create a log file. That should be done with SetLogFile('FileName'). The result of that, however, is User error: Identifier '20.10.txt' has not been declared or assigned (FileName being 20.10.txt). Also, load 'inputfile.magma' seems not to work. I'm working on Mac OS X 10.7.5. Why do those things happen and how do I solve these problems?

1

There are 1 best solutions below

1
On BEST ANSWER

OK, it's a damn basic mistake, and I apologize, but if someone who is (or should be) supposed to teach you at least a bit of MAGMA doesn't tell you strings are delimited by double quotes "" and not signle quotes '' in MAGMA, how exactly are you supposed to guess you should write SetLogFile("20.10.txt") after a semester of MATLAB where strings are delimited by '' and so you would have '20.10.txt'? I sort of found out by myself, and then tonight, in the middle of a web search, I realized that of course, double quotes, and wondered if he is supposed to teach us MAGMA or only to show us random examples of MAGMA usage with no other purpose whatsoever. As for the load thing, I will check that is the right name and come back with either an edit to this or a follow-up, or nothing at all, since the name was from memory and might have been deformed.