On Thu, Nov 25, 2021 at 12:14 PM Sid Andal <[email protected]> wrote:
> The question was very clear and self explanatory....I asked how to output
> a string into a file without the leading "1." and without the double quotes.
>
(1) -> )sys cat test.input
f : TextFile := open("test.out", "output")
writeLine!(f, unparse([1,2,3,4,5,6,7,8]::InputForm))
writeLine!(f, "0123456789")
close!(f)
(1) -> )r test
f : TextFile := open("test.out", "output")
(1) "test.out"
Type:
TextFile
writeLine!(f, unparse([1,2,3,4,5,6,7,8]::InputForm))
(2) "[1,2,3,4,5,6,7,8]"
Type:
String
writeLine!(f, "0123456789")
(3) "0123456789"
Type:
String
close!(f)
(4) "test.out"
Type:
TextFile
(5) -> )sys cat test.out
[1,2,3,4,5,6,7,8]
0123456789
(5) ->
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/CAC6x94RVg9uAnQL5dGbrWZks%3Dgcuwa-dQHCjpH%2BatHdoEMhH8A%40mail.gmail.com.