It is a very important function to save useful data in the demand of software. For example, the daily stock market data needs to be saved to generate a K-line chart. For example, the log of the game client needs to be saved so that the client can
Original:
Simple and Easy--api file read-write class
Http://www.vbgood.com/thread-102870-1-1.html
Read this post: Http://www.vbgood.com/thread-99249-1-1.html wrote a simple class that uses the API to read and write files, menial work. The demo code
Read and write files each software development shows up against must involve the work. The CreateFile function is used to create the corresponding file handle, and the WriteFile function is used to write data to a file, and the ReadFile function
The following functions are typically used to communicate with a peripheral device through the win system:-------------------------------1. CreateFileThe function is to create or open a file or I/O device , commonly used in the form of I/O file,
This problem occurs during a serial communication. If COM1 to com9 is enabled normally and com10 or above is disabled, use getlasterror to check whether the specified file cannot be found for the error bit and then view msdn. The explanation is as
As there are too many notes in Chapter 10, I will post the previous notes first.
1. functions used to open various devices
Device
Function used to open a device
File
Createfile (pszname is the path name or UNC path name)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.