Expand|Select|Wrap|Line Numbers
- using (FileStream fs = File.Create(path))
- {
- Byte[] info = new UTF8Encoding(true).GetBytes("Text");
- // Add some information to the file.
- fs.Write(info, 0, info.Length);
- fs.Close(); // Is it mandaroty to call Close on stream
- }
Whether it is corret.