Skip to main content

Posts

How to Read Text File in C#

Read Text File in C# In this tutorial we Learn how to read Text file in C# using stream Reader. Code:  StreamReader st = new StreamReader("E:/Test.text");             string s;             s = st.ReadToEnd();             Console.WriteLine(s.ToString());             Console.ReadLine();             st.Close(); Output:

How to Creat a Text File in C#

Creat a Text File in C#     Hi guys ! In this tutorial we learn how to create text file in c# using Stream Writer Lets start ,write the following cod in visual studio project: Code      StreamWriter st = new StreamWriter("E:/Test.text");             Console.WriteLine("Please Write something...");             string s = Console.ReadLine();             st.WriteLine(s.ToString());             st.Close(); Output Now go to E drive .Here Text File created.

Addition of Two Number in Jquery

Open Notepad and write the following Code !! <!DOCTYPE html> <html lang="en-US"> <head>     <title>HTML Tutorial</title>     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>     <script>         $(document).ready(function () {             var a = parseInt($('#txt1').val(), 10);             var b = parseInt($('#txt2').val(), 10);             $("#submit").on("click", function () {                 var sum = a + b;                 alert(sum);           ...

Cloud Computing

Introduction Cloud computing is internet-based computing whereby shared resources, software and information are provided to computers and other devices on-demand, like the electricity grid.   Cloud computing is a culmination of numerous attempts at large-scale computing with seamless access to virtually limitless resources. On-demand computing, utility computing, ubiquitous computing, autonomic computing, platform computing, edge computing, elastic computing and grid computing.   A number of characteristics define cloud data, applications services and infrastructure: Remotely   hosted : Services or data are hosted on a remote infrastructure. Ubiquitous : Services or data are available from anywhere. Commodified : The result is a utility computing model similar to traditional of traditional utilities, like gas and electricity; you pay for what you need!   Cloud Computing = Software as a Service + Platform as a Service + Infrastructure as a Service. ...

Swapping Using two variables

  static void Main(string[] args)         {             int a = 2;             int b = 3;             Console.WriteLine("Before Swapping Value of a= " + a.ToString());             Console.WriteLine("Before Swapping Value of b= " + b.ToString());             Console.WriteLine();             a = a ^ b;             b = a ^ b;             a = a ^ b;             Console.WriteLine("After Swapping Value of a= " + a.ToString());     ...

Create text file using Stream writer

Create text file using Stream writer

Fibonacci Series

Print Fibonacci Series:     Console.WriteLine("Print Fibonacci series");      int a = 0, b = 1, sum = 0, n = 10;             for (int i = 1; i <= n; i++)             {                 sum = a + b;                 a = b;                 b = sum;                 Console.WriteLine(a.ToString());             } Output: