FLINT3.7.0-dev

mag_dump_file, mag_load_file

Synopsis#include <flint/mag.h>
int mag_dump_file(FILE * stream, const mag_t x)source
int mag_load_file(mag_t x, FILE * stream)source

Write x to stream in the format of mag_dump_str, and read it back. Both return nonzero on failure. The data is delimited by whitespace or end of file, so several values written in sequence must be separated by whitespace.

Cite this page

The FLINT team, “mag_dump_file, mag_load_file (mag.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mag/mag_dump_file.html (generated 2026-10-20).