This is basically what I use:
public void writetofile(string yourfilename, string yourstringtowritetofile)
{
FileStream fs = new FileStream(yourfilename, FileMode.Create);
for (int i = 0; i < yourstringtowritetofile.Length; i++)
fs.WriteByte((byte)yourstringtowritetofile[i]);
fs.Close();
}
The above is provided "as is" and is without warranty of any kind...
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only