File Stream C#

using System;
using System.IO;
public class ReadingWritingFiles
{
    public static void Main()
    {
        FileStream f = new FileStream("output.txt", FileMode.Create);
        StreamWriter s = new StreamWriter(f);
        
        s.WriteLine("{0} {1}", "test", 55);
        s.Close();
        f.Close();
    }
}