From the monthly archives:

April 2008

Write To File In C++

by Shabbir on April 30, 2008

in C/C++

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 << "Some texxxxxxxxxt." << endl;
fw << "tab\ttab, and [...]

{ Comments }

Write To File in C#

by Shabbir on April 29, 2008

in C#

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;
using System.Text;
 
namespace WriteToFile
{
class Program
[...]

{ Comments }

ASP.Net Web Site Sample

by Shabbir on April 28, 2008

in ASP.Net

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 the Location to [...]

{ Comments }

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 by 1. Its the same for [...]

{ Comments }

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, let start.
Start [...]

{ Comments }

    About the Author

  • author photo

    My Name is Shabbir Bhimani and I am developer by profession in the field of applications, web and database. Currently doing full time online marketing and like to share my experiences on how you can make money online @ CodeItWell.com. Read more ...


    See how you can get in touch with me.