Of course it is possible. The only point not clear in your question is where you want to create this text file and what you want to store inside it.
string fileName = txtForFileName.Text;
// create a path to the MyDocuments folder
string docPath = Environment.GetFolderPath(Environment.SpecialFolders.MyDocuments);
// Combine the file name with the path
string fullPath = Path.Combine(docPath, fileName);
// Note that if the file exists it is overwritten
// If you want to APPEND then use: new StreamWriter(fullPath, true)
using(StreamWriter sw = new StreamWriter(fullPath))
{
sw.WriteLine("Hello world");
}
I think that you could find very useful looking at this MSDN page about Common I/O Tasks