### 4.8.2 Reading files

If you have a function or other Xcas information in a file, you can load it with the read function. If the file is named myfunction.cxx, then

read("myfunction.cxx")

will load the file, as long as the directory is in the current working directory. If the file is in a different directory, you can still load it by giving the path to the file,

read("/path/to/file/myfunction.cxx")

While read can be used to load files containing Xcas functions, which typically end in .cxx, if you want to load a saved session you should use the load function;

load("mysession.cas")