Create flattened.txt