G
Guest
How do I load a string into a FileStream without going to disk?
For example,
string abc = "This is a string";
How do I load abc into a FileStream?
FileStream input = new FileStream(.....);
Reason why I am doing this is that a method that I am calling expects a
FileStream but I would prefer to pass it a Filestream generated from a string
instead of a file since it would be extra overhead to create a file from the
string......
For example,
string abc = "This is a string";
How do I load abc into a FileStream?
FileStream input = new FileStream(.....);
Reason why I am doing this is that a method that I am calling expects a
FileStream but I would prefer to pass it a Filestream generated from a string
instead of a file since it would be extra overhead to create a file from the
string......