Convert a Ngspice rawfile to binary format
The command to use in the control environment of your netlist is the following:
set filetype = binary (or ascii)
The NgSpice output rawfile is generated in binary format.
The command is to be inserted right before the write command if inserted. Here is a minimal working example of the .control environment:
.control
run
set filetype=binary
write path_to_where_you_want_your_rawfile_to_be_saved all
.endc
.end