C summary part 6 file management
10_ file
Text files: Based on character encoding, such as ASCII, UNICODE
Binary
file open
FILE *fopen(filename, mode);
// The system itself defines a structure called FILE
// Mode indicates the mode of opening the file
/*
mode The value of
r rb Open as read-only
w wb Open as write
a ab Open as append, add content at the ...
Posted by hillbilly928 on Sun, 01 Mar 2020 00:21:59 -0800
Java NIO implementation of Reactor model
The implementation of Reactor model can be divided into the following three types:
Single thread model
Single Reactor multithreading model
Master slave Reactor multithreading model.
Single thread model
The Reactor single thread model refers to that all IO operations are completed on the same thread. The responsibilities of the thread are as f ...
Posted by nightowl on Sat, 29 Feb 2020 20:44:02 -0800
C#Develop windows services
Introduction to Windows Service Application
Microsoft Windows Services (formerly known as NT Services) allow users to create executable applications that can run for a long time in their own Windows sessions.These services start automatically when the computer starts, can be paused and restarted, an ...
Posted by jrbilodeau on Sat, 29 Feb 2020 19:48:13 -0800
Redis Source Tidy Notes: intset and personal understanding
intset structure
typedef struct intset {
uint32_t encoding; // Types of all elements in the current structure
uint32_t length; // Number of elements in contents, that is, the number of elements in the set of integers
int8_t contents[]; // Elements stored in a collection of integers
} ...
Posted by plezops on Sat, 29 Feb 2020 19:33:40 -0800
0228 My Pandora
My Pandora
Start with a story.In the past, there was a Java programmer who liked writing programs, studying source code, and reading English documents.But it works in a small company with an old technology stack.There are many xml configurations in a single system code, configuring the entry adapters for various middleware and similar configu ...
Posted by jpr on Fri, 28 Feb 2020 10:02:51 -0800
How to implement the complete INI file reading and writing class
Author: Magic fudge
Date: February 27, 2020
Introduction
*************************************
The. ini file is an abbreviation of the Initialization File, which is the configuration file. yes windows System configuration file The storage format used.
It is easy to use, and has similar functions with the key value of the registry. Various appli ...
Posted by chalexan on Thu, 27 Feb 2020 21:32:58 -0800
Detail the Spring XML file -- call the parameter construction method and assign the parameter
Catalog
1, If the constructor can be called
1. Write a UserInfo class:
2. The spring XML file is configured as follows:
3. Write a Test class
2, Assign values to different types of parameters of the constructor
1. Custom object
1) Write UserInfo class
2) Configuration XML file
3) Write Te ...
Posted by Grim... on Thu, 27 Feb 2020 02:44:19 -0800
Get the general method of request parameters | |; Chinese scrambling problem | |; request forwarding
1. General way to get request parameters: the following methods can be used to get request parameters in both get and post request modes
1. String getParameter(String name): get the parameter value according to the parameter name. Username = ZS & password = 123
2. String[] getParameterValues(St ...
Posted by shylock on Thu, 27 Feb 2020 02:04:50 -0800
Detailed explanation of the use of ssziprarchive
1, Use details:
When we develop an app, we sometimes need to compress and decompress the files. At this time, we must use a third-party open source library, ssziprarchive, to compress and decompress the target files.
DDLog is used to record logs. The logs of DDLog exist in different files by ...
Posted by jeff8j on Thu, 27 Feb 2020 00:00:16 -0800
Android Development Series 2 - details of Activity page Jump
In Android development, the jump between Activity pages can be divided into two types. There are different methods and methods in two of them. Next, we will introduce each method of page Jump in detail.
Intent is a messaging object that can be used for other application request operations. Intent can pr ...
Posted by psymonic on Wed, 26 Feb 2020 21:48:21 -0800