Create and Open the ABF File
The ABF library is used to write to Altair Binary Format files. Before you can write to an ABF file, it must first be initialized. Once the file is initialized, you can create and open the file. When you write to an ABF file, the existing file is overwritten without warning.
If there is only one file name specified on the command line after calling abfCommandLine(), you need not create and open the file. When only an input file name is given (the file to be translated), no output file needs to be created or opened. The ABF library automatically outputs the data to either the standard output stream, stdout, or a connection to an external reader.
Even when there is no open file, an open data stream exists either to stdio or
through a pipe to the program. Therefore, if abfOpenFile() is not
explicitly called, abfCloseFile() must be called before the
translator terminates, except in the case of an error (when
abfError() is called).
Note: The ABF library cannot be used to
read ABF files.
-
Initialize the ABF file.
- Use abfCreateFile() to create an ABF file.
- Use abfOpenFile() to open the file for output.