Karthikeya Boyini has Published 2193 Articles

Read in a file in C# with StreamReader

karthikeya Boyini

karthikeya Boyini

Updated on 03-Apr-2020 10:43:20

549 Views

To read text files, use StreamReader class in C#.Add the name of the file you want to read −StreamReader sr = new StreamReader("hello.txt");Use the ReadLine() method and get the content of the file in a string −using (StreamReader sr = new StreamReader("hello.txt")) {    str = sr.ReadLine(); } Console.WriteLine(str);Let us ... Read More

How to access array elements using a pointer in C#?

karthikeya Boyini

karthikeya Boyini

Updated on 03-Apr-2020 09:08:18

4K+ Views

In C#, an array name and a pointer to a data type same as the array data, are not the same variable type. For example, int *p and int[] p, are not the same type. You can increment the pointer variable p because it is not fixed in memory but ... Read More

Print a 2 D Array or Matrix in C#

karthikeya Boyini

karthikeya Boyini

Updated on 27-Mar-2020 10:08:56

3K+ Views

First, set a two-dimensional array.int[, ] arr = new int[10, 10];Now, get the elements from the user −for (i = 0; i < m; i++) {    for (j = 0; j < n; j++) {       arr[i, j] = Convert.ToInt16(Console.ReadLine());    } }Let us see the complete ... Read More

String Join() method

karthikeya Boyini

karthikeya Boyini

Updated on 27-Mar-2020 09:40:42

716 Views

The Join () method in strings concatenates all the elements of a string array, using the specified separator between each element.In the below example we have a multi-line string and we have set the separator as “” −String.Join("", starray);ExampleThe following is the complete example − Live Demousing System; namespace StringApplication ... Read More

CSS cue property

karthikeya Boyini

karthikeya Boyini

Updated on 16-Mar-2020 08:20:02

181 Views

The cue property is a shorthand for setting cue-before and cue-after. If two values are given, the first value is cue-before and the second is cue-after. If only one value is given, it applies to both properties.ExampleFor example, the following two rules are equivalent −    

CSS elevation Property

karthikeya Boyini

karthikeya Boyini

Updated on 16-Mar-2020 08:11:24

1K+ Views

The elevation property sets where the sound should come from vertically. The possible values are as follows −angle − Specifies the elevation as an angle, between -90deg and 90deg. 0deg means on the forward horizon, which loosely means level with the listener. 90deg means directly overhead and -90deg means directly below.below − ... Read More

Fade Down Big Animation Effect with CSS

karthikeya Boyini

karthikeya Boyini

Updated on 16-Mar-2020 08:07:07

130 Views

To implement Fade Down Big Animation Effect on an image with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: ... Read More

CSS background-clip property

karthikeya Boyini

karthikeya Boyini

Updated on 16-Mar-2020 08:04:29

161 Views

The CSS background-lip property is used to declare the painting area of the background. You can try to run the following code to implement the background-clip property in CSS −Example                    #demo {             border: ... Read More

Animation Effects in CSS

karthikeya Boyini

karthikeya Boyini

Updated on 16-Mar-2020 07:54:25

149 Views

The animation is the process of creating motion effects and changes the appearance.CSS does support different animation effects to change the event motion.Under Animation, a concept Keyframes is used. Keyframes will control the intermediate animation steps in CSS3.The below example shows height, width, color, name, and duration of animation with ... Read More

CSS border-bottom-left-radius property

karthikeya Boyini

karthikeya Boyini

Updated on 16-Mar-2020 07:45:09

69 Views

Use the border-bottom-left-radius property to set the border of the bottom left corner. You can try to run the following code to implement the border-bottom-left-radius property −ExampleLive Demo                    #rcorner {             border-radius: 25px;             border-bottom-left-radius: 45px;             background: blue;             padding: 20px;             width: 200px;             height: 150px;          }                     Rounded corners!    

Advertisements