Skip to content

Direct answer export to text type formats #97

Closed Answered by lcn2
roshan-g20 asked this question in Q&A
Discussion options

You must be logged in to vote

My question is, is there any way to directly write the answer in a text file instead of the terminal shell, this app is great, but as I use it on termux it has Max 50000 rows any number larger than that can't be scrolled back, so I wanted this app to directly write the answer in a text file

Hello @roshan-g20.

Calc has a set of built-in functions that allow you to do file I/O. For general info on file I/O see:

; help file

FYI: The leading ";"'s in these interactive examples is just the interactive prompt of calc.

You may open, and create a new file or truncate an old file, as needed:

; outfile = fopen("/tmp/output", "w");

And then print values to that file:

; bigprime = 391581 * 2^2161…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@lcn2
Comment options

Answer selected by lcn2
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants