How can I create a temp file with a specific extension with .NET?

I need to generate a unique temporary file with a .csv extension. What I do right now is string filepath = System.IO.Path.GetTempFileName().Replace(“.tmp”, “.csv”); However, this doesn’t guarantee that my .csv file will be unique. I know the chances I ever got a collision are very low (especially if you consider that I don’t delete the … Read more

Can I delete data from the iOS DeviceSupport directory?

After going through and cleaning my disk with old things that I didn’t need anymore, I came across the iOS DeviceSupport folder in ~/Library/Developer/Xcode which was taking nearly 20 GB. A similar question has been asked before, but since then many things have changed and I would like an up-to-date answer. As long as I have the … Read more