How to load my program in GAP system?

2k Views Asked by At

After downloading the Windows version of the GAP system, I want to ask if GAP can read the file in specified path in Windows? What is the command to load a GAP script in the Windows environment?

1

There are 1 best solutions below

1
On

The command is called Read (enter ?Read in GAP to see the documentation). The trick on Windows is to replace \ by /. For example one should call

gap> Read("C:/Users/myname/gap/program.g");

to read a file that Windows would call

C:\Users\myname\gap\program.g

Also, I'd recommend to avoid paths containing spaces.

P.S. If you prefer to ask questions about GAP in StackExchange framework, I'd recommend to try to ask them at the Mathematics Q&A site.