Users Pricing

forum

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

Stream not writing on a file

Jayden Bell 1780 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

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md