Skip to content

How to write cints to a file? #1658

@vrindadesai

Description

@vrindadesai

Relevant documentation
The public outputs section discusses print_ln, but not writing to a file. https://mp-spdz.readthedocs.io/en/latest/io.html?highlight=writing%20file#public-outputs

The question
I need to create a dynamically sized array, the specific size is dependent on my data and I will only know the appropriate size after one pass of computation. Our approach to this problem was splitting up the program and writing the size to a file (the size will be a public value). After perusing some documentation, I am unsure how to write a cleartext int to a regular .txt file--specifically, it appears in the file in the cXX format rather than looking like a number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions