# nt2nb

Converts NIFF text into binary

### Syntax

> nt2nb input-file output-file

### Explanation

Reads the text file input-file and outputs it to the NIFF data file output-file.

This command can convert the data output in text format by nb2nt into NIFF binary data.

- Everything below ";" is a comment and is thrown out when the file is read.
- The read data is a list of integers and real numbers, but it corresponds to a list of NIFF binary data
- If the list of numerical data is not wrong, then it does not matter whether the other character strings are correct or not.
- If the first character in a string is - or 0~9, the string is judged to be numerical data. After the string has been judged to be numerical data, it is read as "floating" if there is a decimal point.
- The part bounded by <List name> and </List name> is read as that List, and it does not matter what is written outside of its delimiters.

Basically, each numeric written in text format and delimited by spaces is converted into 4bytes of binary data. Character strings that are not numerics are skipped.

Texture data and NameList are not 4byte data, so these are given special treatment. Please refer to the output of nb2nt.

### Notes

If there are errors in the data list, sometimes the file cannot be converted.
Because floating data is rounded off with nb2nt, you cannot be certain you have returned to the original data when using nt2nb.

### See also

nb2nt

Copyright 1998-1999 NINTENDO Co.,Ltd./1998-1999 MONEGI CORPORATION All rights reserved.