build FileWriter