Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to print output into a file #76

Open
w1001766 opened this issue May 24, 2020 · 1 comment
Open

How to print output into a file #76

w1001766 opened this issue May 24, 2020 · 1 comment

Comments

@w1001766
Copy link

I wonder what is the .mpc code that can print into a file. Take tutorial.md for example:

**a = cint(2)
b = cint(10)

c = a + b
print_ln('Result is %s', c)**

Instead of printing 'Result is c' on the terminal, how to save that to a textfile?

@mkskeller
Copy link
Contributor

The only way of achieving this is through redirection, for example:
./mascot-party.x 0 tutorial > <filename>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants