not working
This commit is contained in:
23
Vector3Visualizer/NamedPipes/ReadFileToStream.cs
Normal file
23
Vector3Visualizer/NamedPipes/ReadFileToStream.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.IO;
|
||||
|
||||
namespace NamedPipes
|
||||
{
|
||||
// Contains the method executed in the context of the impersonated user
|
||||
public class ReadFileToStream
|
||||
{
|
||||
private readonly string fn;
|
||||
private readonly StreamString ss;
|
||||
|
||||
public ReadFileToStream(StreamString str, string filename)
|
||||
{
|
||||
fn = filename;
|
||||
ss = str;
|
||||
}
|
||||
|
||||
public void Start()
|
||||
{
|
||||
string contents = File.ReadAllText(fn);
|
||||
ss.WriteString(contents);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user