Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

save file with unique name c#

public string GenerateFileName(string context)
{
    return context + "_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + "_" + Guid.NewGuid().ToString("N");
}

filename1 = GenerateFileName("MeasurementData");
filename2 = GenerateFileName("Image");
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to reload current scene unity 
Csharp :: how to unlock cursor in unity 
Csharp :: unity 2d raycast mouse 
Csharp :: c# how-to-download-image-from-url 
Csharp :: change height of rect transform unity 
Csharp :: c# random enum 
Csharp :: unity 2d jump 
Csharp :: url()- full() laravel 
Csharp :: c# char to int 
Csharp :: urlreferrer in asp.net core 
Csharp :: c# for loop backwards 
Csharp :: c# executable directory 
Csharp :: how to get an child of an gameobject 
Csharp :: stream to byte array c# 
Csharp :: exit application wpf 
Csharp :: creatw list of int in C# 
Csharp :: how to change particle system rate over time unity 
Csharp :: c# empty IEnumerable 
Csharp :: unity print 
Csharp :: unity serializefield 
Csharp :: find unity 
Csharp :: Convert Newtonsoft.Json.Linq.JArray to type System.Collections.Generic 
Csharp :: how to chnage the Scale propery of rect tranform unity 
Csharp :: how to start a coroutine in c# 
Csharp :: c# copy list without reference 
Csharp :: c# start as adminstrator 
Csharp :: vs code explorer font size 
Csharp :: InvalidOperationException: Calling Scene Raisefrom assembly reloading callbacks are not supported. 
Csharp :: unity agent walks in place at start 
Csharp :: double tryparse dot comma 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =