예제 #1
0
 /// <summary>
 /// Creates an instance of TempFile.
 /// </summary>
 /// <param name="ext">The extension for the file.</param>
 public TempFile(string ext)
 {
     TempPath = FileEx.GetUniqueFileName(ext);
 }
예제 #2
0
 /// <summary>
 /// Creates an instance of TempFile.
 /// </summary>
 /// <param name="dir">The path to the directory.</param>
 /// <param name="template">The template for the file name. Place a {0} where the counter should go (ex, MyPicture{0}.jpg).</param>
 public TempFile(string dir, string template)
 {
     TempPath = FileEx.GetUniqueFileName(dir, template);
 }
예제 #3
0
 /// <summary>
 /// Creates an instance of TempFile.
 /// </summary>
 public TempFile()
 {
     TempPath = FileEx.GetUniqueFileName();
 }