using System;
using System.IO;

class Program
{
    static void Main()
    {
        string path = "sample.txt";
        File.WriteAllText(path, "Hello, File Handling in C#!");
        Console.WriteLine("File created successfully.");
    }
}