Question: Linux directory change

I have a Maple code which I wrote on a Windows machine. Now I need to run it on a Linux machine. I set the directory by the command

currentdir("C:/example"):

How should I change this if I want it to be /home/user/example ?

and I use

fopen("C:/mydir/examp/example.dat", WRITE):

How should I change this line in Linux if I want it to be in /usr/local/mydir/examp/example.dat?

Are there any other changes should I make to convert my code to Linux? These above ones are the only ones which deal with the file system, the rest are usual Maple commands.

Thank you in advance.

 

 

 

 

Please Wait...