Server Side Programming Articles - Page 278 of 2650

C# Program to Find Integer Numbers from the List of Objects and Sort them Using LINQ

Ankit kumar
Updated on 21-Apr-2023 14:16:25

528 Views

Introduction In this article, we will learn how to write a C# program to find integer numbers from the list of objects and sort them using LINQ. Let's have a small overview of the language. The C# programming language is frequently used to develop desktop, web, and mobile apps. Linguistic Integrated Query, sometimes known as LINQ, is one of C#'s strong points. Developers may quickly query data from various sources, including arrays, collections, and databases. It gives developers access to a syntax that is comparable to SQL (Structured Query Language) and enables simple data manipulation and sorting. Regardless of the ... Read More

C# Program to Estimate the Size of Folder

Ankit kumar
Updated on 21-Apr-2023 14:14:28

512 Views

Introduction In this article, we will understand the C# program to estimate the size of a folder. On our PC, we store files in a directory called a folder. We will also be understanding how to estimate the size of folders that are present inside a file. Calculation of just file size is not enough to reach our goal. Instead we need to calculate the size of folders and subfolders too. The article below will explain to calculate the size of the folder in three parts. The first part we will know will be the GetFolderSize method which will ... Read More

C# Program to Delete Empty and Nonempty Directory

Ankit kumar
Updated on 21-Apr-2023 14:08:47

720 Views

Introduction On the computer, we can store files in a directory, also known as a folder. A directory also contains shortcuts to other directories and files. Here, we will discuss the C# Program to Delete Empty and Non-empty Directories. A static class called Directory offers static methods for dealing with directories. A DirectoryInfo object offers details on a particular directory. Delete Empty and Non-empty Directory Now that we have a directory (either empty or not), we must delete it. An empty directory indicates that there are no files or subdirectories present in the directory. A directory can be ... Read More

C# Program to Create String from Contents of a File

Ankit kumar
Updated on 21-Apr-2023 14:01:00

208 Views

Introduction Let us see how to create a C# program to create a string from the contents of a file. The string is an integral part of file handling. A string in C# is a series of letters. Like, "TutorialsPoint" is a string containing 't' 'u' 't' 'o' 'r' 'i' 'a' 'l' 's' 'p' 'o' 'i' 'n' 't' as characters. We use the string keyword to create a string. File handling or file management in layman's terms the various processes such as making the file, reading from it, writing to it, appending it, and so on. The viewing and writing ... Read More

C# Program to Copy a File

Ankit kumar
Updated on 21-Apr-2023 13:58:59

484 Views

Introduction C# is a high-level language that caters to the large needs of programmers. It can also help in copying a file. So, in this article, we will learn a C# Program to Copy a File. As we know file copying falls in the category of file handling. So, before we proceed further let us recap the definition of file handling. File handling or file management in layman’s terms the various processes such as making the file, reading from it, writing to it, appending it, and so on. The reading and writing of files are the two most ... Read More

C# Program to check if a path is a directory or a file

Ankit kumar
Updated on 21-Apr-2023 13:53:26

5K+ Views

Introduction Let us learn how to write C# program to check if a path is a directory or a file. A directory, also known as a folder, is a place on your computer where you can save files. A directory holds other directories or shortcuts in addition to files. A file is a collection of data on a drive that has a unique identifier and a directory path. When a file is opened for viewing or writing, it is transformed into a stream. The stream is simply a sequence of bytes traversing the communication route. Files vs Directory ... Read More

How to Create a Pivot Table in Python using Pandas?

Mukul Latiyan
Updated on 20-Apr-2023 14:32:37

3K+ Views

A pivot table is a powerful data analysis tool that allows you to summarize and aggregate data based on different dimensions. In Python, you can create pivot tables using the pandas library, which provides flexible and efficient tools for data manipulation and analysis. To create a pivot table in pandas, you first need to have a dataset in a pandas DataFrame. You can load data into a DataFrame from various sources such as CSV files, Excel spreadsheets, SQL databases, and more. Once you have your data in a DataFrame, you can use the pandas pivot_table() function to create ... Read More

How to create a meeting with the zoom API in Python?

Mukul Latiyan
Updated on 21-Apr-2023 09:20:03

3K+ Views

Zoom is a video conferencing platform that has become increasingly popular for remote meetings and webinars. Zoom provides an API that allows developers to programmatically interact with Zoom's features and functionality, including creating and managing meetings. In this context, Python provides a simple and efficient way to create meetings through Zoom's API. By using Python, you can automate the process of creating Zoom meetings and integrate it with other workflows or applications. In this guide, we will explore how to create a meeting with the Zoom API in Python using the requests library and the Zoom API's authentication mechanisms. ... Read More

How to create a matrix of random integers in Python?

Mukul Latiyan
Updated on 20-Apr-2023 14:18:28

9K+ Views

In Python, you can create a matrix of random integers using the NumPy library. NumPy is a powerful library for scientific computing in Python that provides support for multidimensional arrays, among other things. To create a matrix of random integers using NumPy, you can use the numpy.random.randint() function. This function generates random integers between a specified range and returns a NumPy array of the specified shape. The range of integers to be generated is specified using the low and high arguments of the function. To specify the shape of the matrix, you can use the size argument of ... Read More

How to Create a Histogram from Pandas DataFrame?

Mukul Latiyan
Updated on 20-Apr-2023 14:17:34

10K+ Views

A histogram is a graphical representation of the distribution of a dataset. It is a powerful tool for visualizing the shape, spread, and central tendency of a dataset. Histograms are commonly used in data analysis, statistics, and machine learning to identify patterns, anomalies, and trends in data. Pandas is a popular data manipulation and analysis library in Python. It provides a variety of functions and tools to work with structured data, including reading, writing, filtering, cleaning, and transforming data. Pandas also integrates well with other data visualization libraries such as Matplotlib, Seaborn, and Plotly. To create a histogram from ... Read More

Advertisements