Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to load my program in GAP system?

Tags:

gap-system

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?

like image 826
ControlPoly Avatar asked Dec 17 '25 17:12

ControlPoly


1 Answers

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.

like image 99
Olexandr Konovalov Avatar answered Dec 23 '25 06:12

Olexandr Konovalov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!