forum

Home / DeveloperSection / Forums / Stream not writing on a file

Stream not writing on a file

Jayden Bell 1552 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 ");

c# c# 
Updated on 29-Jan-2014

Can you answer this question?


Answer

1 Answers

Liked By