- Joined
- Oct 19, 2007
- Messages
- 491
- Reaction score
- 159
I want to start learning C#, but i have NO idea where to start. Can anyone give me some references or tips. Anything that can help me start .
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
namespace GiveMeYourName
{
class Program
{
static void Main(string[] args)
{
string text;
StreamWriter sw;
Console.Title = ("I NEED YOUR DAMN NAME");
Console.BackgroundColor = ConsoleColor.Gray;
Console.Clear();
Console.ForegroundColor = ConsoleColor.Black;
Console.WriteLine("Hello Anonymous, I am going to need your name to go further!");
Console.WriteLine("------------------------------------------------------------");
Console.WriteLine("Press enter to continue...");
Console.ReadKey();
Console.WriteLine("Your Name:");
text = Console.ReadLine();
try
{
if (!File.Exists("log.txt"))
{
sw = new StreamWriter("log.txt");
}
else
{
sw = File.AppendText("log.txt");
}
sw.WriteLine(text.ToString());
sw.WriteLine();
Console.WriteLine(" OI, I HAVE YOUR NAME, NOW GTFO ");
Console.ReadLine();
sw.Close();
}
catch{}
}
}
}
Very nicely done if you coded that yourself for one of your first programs. Looks like you had fun with that
omg your such a k0der arn't you!!!!
You made a console app that makes file or check if it exists! PP
Ahh sorry for the sarcasam, I made a console app that had a working socket, So I suck at C# as well. Haha.So? Lol it's my first console app.. ever.
Ahh sorry for the sarcasam, I made a console app that had a working socket, So I suck at C# as well. Haha.
Pick up a book named "Head First C#" you won't regret it.
Pick up a book named "Head First C#" you won't regret it.