Input and Output
Albert Danial · Apress eBooks · 2022
The first step to solving many computational problems is reading data from the command line, interactive input, text or binary files, a network, a serial port, or a combination of these. The final step often involves writing data to text or binary files. In this chapter, we’ll cover input and output methods in detail, including reading and writing file formats important to scientific and numerical analyses—plain text files; binary files; the ubiquitous Excel formats .csv , .xls , and .xlsx ; HDF5; netcdf4; XML; JSON; YAML; .ini ; SQLite; and HTML.