1. regular
open()
read(), write(), readlline()
close()
Python File I/O: Read and Write Files in Python ==> primary ref.
7. Input and Output — Python 3.10.0 documentation (7.2) ==> definitive ref.
2. Json
load()
dump()
tutorial short Python JSON: Read, Write, Parse JSON (With Examples)
3. numpy
loadtxt(), genfromtxt() Reading and writing files — NumPy v1.22.dev0 Manual
numpy.fromfile() #binary numpy.fromfile — NumPy v1.21 Manual
savetxt() numpy.savetxt — NumPy v1.21 Manual
ndarray.tofile() #binary possible numpy.ndarray.tofile — NumPy v1.21 Manual