build a file