Good day,
I'm trying to create a file programmatically using C# and that file will be attach or send to email.
I want to file contains a string just like below..
var stringInsideTheFile = new StringBuilder("Hello, I'm a test only");
I'm trying, File
but requires a path. which is I don't need.
var test = File.WriteAllLines(path, content);
To summarize, I just want a help how to create a file programmatically and use that object with a content from string builder.
any help?