0
votes

Tried using this open in c#; "(open " + "CarFluidTest.test.txt" + " " + "b" +" "+ "w" + ")" inside an Eval but I get this error:

[ARGACCES5] Function open expected argument #3 to be of type string

yet in the open function string w is the third argument.

Help fix this.

1

1 Answers

0
votes

The command you're passing to eval is

(open CarFluidTest.test.txt b  w)

Symbols (without quotes) and strings (with quotes) are two different types in CLIPS. You should be passing "w" as the third argument, not w. To do this, modify your constructed string to

"(open " + "CarFluidTest.test.txt" + " " + "b" +" "+ "\"w\"" + ")"