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.pamphlet9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/algebra/files.spad.pamphlet b/src/algebra/files.spad.pamphlet
index 98543b32..efc90616 100644
--- a/src/algebra/files.spad.pamphlet
+++ b/src/algebra/files.spad.pamphlet
@@ -185,7 +185,7 @@ File(S:SetCategory): FileCategory(FileName, S) with
f.fileIOmode ~= "output" =>
error "File not in write state"
z := PRINT_-FULL(x, f.fileState)$Lisp
- TERPRI(f.fileState)$Lisp
+ %writeNewline(f.fileState)$Foreign(Builtin)
x
@
@@ -260,16 +260,15 @@ TextFile: Cat == Def where
"failed"
write!(f, x) ==
f.fileIOmode ~= "output" => error "File not in write state"
- PRINTEXP(x, f.fileState)$Lisp
+ %writeString(x, f.fileState)$Foreign(Builtin)
x
writeLine! f ==
f.fileIOmode ~= "output" => error "File not in write state"
- TERPRI(f.fileState)$Lisp
+ %writeNewline(f.fileState)$Foreign(Builtin)
""
writeLine!(f, x) ==
f.fileIOmode ~= "output" => error "File not in write state"
- PRINTEXP(x, f.fileState)$Lisp
- TERPRI(f.fileState)$Lisp
+ %writeLine(x,f.fileState)$Foreign(Builtin)
x
endOfFile? f ==
f.fileIOmode = "output" => false