build input.txt from book text