An alternative to UBB.threads
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
FLocal/Builder/TempFile.cs

30 lines
530 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace Builder {
class TempFile : IDisposable {
public readonly string fileName;
public TempFile() {
this.fileName = Path.GetTempFileName();
}
public StreamReader getReader() {
return new StreamReader(this.fileName);
}
public StreamWriter getWriter() {
return new StreamWriter(this.fileName);
}
public void Dispose() {
File.Delete(this.fileName);
}
}
}