Changed File to Path in WriteLines