
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 26504 Articles for Server Side Programming

266 Views
Python is a very powerful programming and it is heavily used in various fields. Python is considered to be the most popular programming language among developers at the moment and the reason for the rising popularity of python is the efficiency and simplicity it offers. In today’s modern digital era, data is everything and the management of this data is the biggest challenge for the tech powerhouses around the globe. When a machine is created to think and learn on the basis of past experiences, data complexity is inevitable. So, the smart move is to use a programming language ... Read More

276 Views
“Which programming language is the best?” this is the most popular and debatable question in the programming world. The answer to this question is not linear or simple because technically every programming language has its own pros and cons. There is no “best” programming language because each language holds a slight advantage over other languages depending upon the problem. When we talk about machine learning, undoubtedly python is a highly preferred language but there are certain factors that should be considered We will talk about these factors in detail but before we dive deep into the discussion, let’s quickly understand ... Read More

1K+ Views
Carnot cycle is the most fundamental gas power cycle. This is the cycle which acts as a benchmark for any engine cycle. Each and every engine cycle efficiency is checked against the Carnot Cycle. If an inventor develops a new engine cycle, then it has to be validated against the benchmark, i.e., the Carnot Cycle. All thermodynamic cycle has an upper limit established by the Carnot cycle. It comprises of two reversible adiabatic processes and two isothermal processes, in total four processes. Isothermal processes involve the addition and rejection of heat, whereas reversible adiabatic processes involve work interactions. A ... Read More

7K+ Views
Golang has a large range of internal packages to work with the directory. The directory in which the application is operating is known as the current working directory. Here we can use the OS packages as well as the path/filepath package of Golang to get current working directory. In the OS package we can use os.Getwd() function to the current working director. Whereas in path/filepath package we can use filepath.Abs and filepath.dir to get the filepath of the current working directory. Method 1: Using os.Getwd() function This method uses the os.Getwd function from the os package to get ... Read More

206 Views
In go we can use io and os package to perform various operations with file. In this article, we are going to use ioutil.readfile function to read the file and then the string function to convert the file data to string. From OS package we are going to use os.open to open the file and use string operation to convert the data to string. Method 1: Using io/ioutil package In this illustration, the file's contents are read into a byte slice using the ioutil.ReadFile function. The byte slice is subsequently transformed into a string using the string function. The contents ... Read More

2K+ Views
Golang has packages like os, io, and Archie/zip that can be used to read and print all the files from a zipped file. A zip file is a compressed collection of a set of files/folders. The OS package is used for performing copy operations, the io pacakge is for reading and writing operations whereas the archive/zip package is for unzipping and zipping the file. In this article, we are going to learn about using all these packages to perform the copy and unzipping of the files and printing the same. Method 1: Using io and os package This program uses ... Read More

3K+ Views
In golang there are various internal packages such as bufio, os and io that can be used for reading the content of a file line by line. The bufio and os packages are used for opening and scanning the file using os.open and bufio.NewScanner function. The io package we are going to use ioutil.ReadFile to read the file from the given destination and the use the string function to display it in the output. Method 1: Using bufio and os package In this illustration, bufio.NewScanner is used to read line by line content and os.Open is used to open the ... Read More

3K+ Views
Golang has OS package such as OS.open(), os.closs(), os.copy() and move more that are used for performing different operations with the external files. Similiary we have io package in golang that is used for performing read and write operations on the external file. Here in this article, we are going to use these two packages to print all the files in the given directory. Method 1: Using OS Package This program opens the provided directory and reads its contents using the os package. A slice of os.FileInfo objects, which are returned by the Readdir function and include details about each ... Read More

1K+ Views
In Golang, we can use io and os packages to append a string in an existing file. file contains data that can be manipulated in many ways like editing and writing the data. In this article the first method will demonstrate the application of os.Open file of OS package. In the second method, we are going to demonstrate the application of io package. Method 1: Using OS Package In this method, we are going to use os.OpenFile function of OS package in Golang. The permissions for the file are specified by the 0644 parameters. The file will be created ... Read More

7K+ Views
In golang, we can use the path package and string package to get the extension of a particular file. Here, in his article, we will obtain the file extension using two methods. In the first method, we will use path package function path.Ext. In the second method, we will use strings package function strings.LastIndex. Method 1: Using Path Package In this method, we will use path.Ext from path package to get the file extension. This built-in function will take the file as an input whose extension is to be printed. Syntax path.Ext The Go path/filepath package makes it easier ... Read More