private void buildFile() throws Exception {
// input
int wordCount = 0;
Transformator t;
if (phonet == null) t = new DoubleMeta();
else t = new GenericTransformator(new File(phonet), encoding);
BufferedReader r;
if (encoding == null) r = new BufferedReader(new FileReader(wordlist));
else r = new BufferedReader(new InputStreamReader(new FileInputStream(wordlist), encoding));
// output