note if the file already exists then the contents will be overwritten inline. so if the length of the Id ever changes you will have a bug. if your intent is to delete the file and write a new one you should do that.