Users Pricing

forum

home / developersection / forums / stream not writing on a file

Stream not writing on a file

Jayden Bell 1739 28 Jan 2014

Is there anything wrong with this piece of code ? It's opening the file , yet it doesn't write on it.

fl = new FileStream(path, FileMode.OpenOrCreate);
sw = new StreamWriter(fl);
sw.WriteLine("Hello ");

Jayden Bell

Other


1 Answers