Try Write to file