The main purpose of "Dot Net Labs" provide the dot net program. You can learn dot net, .Net Core, C#, SQL, Linq step-by-step.

Wednesday 27 May 2015

How to save C# program in Notepad



To save a C# program using Notepad, you can follow these steps:

Open Notepad

Open the Notepad application on your computer. You can usually find it by searching for "Notepad" in the Start menu.

Write your C# program

In Notepad, write or copy-paste your C# program code into the editor.

Save the file

To save the file, go to "File" in the menu bar and click on "Save" or use the keyboard shortcut Ctrl + S.

Choose a file name

In the Save dialog, choose a name for your C# program file. Make sure to give it a .cs extension to indicate that it's a C# source code file. For example, you can name it "MyProgram.cs".

Select a location

Choose a location on your computer where you want to save the file. It could be your desktop or a specific folder.

Save the file

Click on the "Save" button to save the C# program file with the chosen name and location.



Step 1 : File save with file extention " .cs "






Step 2 : Open developer command prompt for compiling





Step 3 : Find Location of saved file




Step 4 : To compile file on command with " csc <file_name>.cs "




Step 5 : To run and output command with " <file_name>.exe "


2 comments:

  1. You completely match our expectation and the variety of our information.notepad++ windows download

    ReplyDelete
  2. You completely match our expectation and the variety of our information.


    trigidentities.info/unit-circle-chart

    ReplyDelete

Do not enter spam link

Popular Posts