Adds write to file
Write secure to file