In this post we explained writing in a file using the C# language. In this post we will explain how to do that in unmanaged C++. So, we are creating a C++ console application, you can use Dev C++ for compiling this code. Here is the code. int main() { ofstream fw; fw.open("text.txt"); fw [...]
Today we will create a console application written in C# for writing to files. We will use the StreamWriter class that is implemented in .Net Framework. Create new C# project (Ctrl+Shift+N), and choose Console Application from the Templates menu on the right. The editor will create the main code using System; using System.Collections.Generic; using System.Linq; [...]
Today we will create a simple ASP.Net web site. You must have Visual Studio or Visual Web Deleloper to start creating web sites with ASP.Net. We will use Visual Studio 2008. To start go to File -> New -> Web Site (Shift+Alt+N). In the dialog box under the Templates area select ASP.NET Web Site, set [...]
Very common programming practice is adding or subtracting an integer variable by 1. We know that adding 1 to variable is incrementing, and subtract 1 from variable is decrementing. It only works with integer values. Let us see some examples i++; i=i+1; i+=1; This three commands are all the same. It increments the variable i [...]
Just for start we will create very simple program, just for describing the basis of Windows Forms programming in C#. We are using the newest version of Visual Studio, Visual Studio 2008 for programming environtment. In it is implemented the .Net Framework 3.5, but we can make projects under .Net 2.0, 3.0 and 3.5. So, [...]