aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/files.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/files.spad.pamphlet')
-rw-r--r--src/algebra/files.spad.pamphlet2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algebra/files.spad.pamphlet b/src/algebra/files.spad.pamphlet
index 82fac4e6..695db887 100644
--- a/src/algebra/files.spad.pamphlet
+++ b/src/algebra/files.spad.pamphlet
@@ -364,7 +364,7 @@ KeyedAccessFile(Entry): KAFcategory == KAFcapsule where
ks: List Symbol := RKEYIDS(f.fileName)$Lisp
null ks => error ["Attempt to read empty file", f]
ix := random()$Integer rem #ks
- k: String := PNAME(ks.ix)$Lisp
+ k: String := string(ks.ix)
[k, SPADRREAD(k, f.fileState)$Lisp]
write!(f, pr) ==
f.fileIOmode ~= "output" => error ["File not in write state",f]