C # winform Development Series-File

Source: Internet
Author: User

Describes operations related to file directories, including configuration file usage, encoding conversion, web download, and encryption .(ArticleAnd RelatedCodeCollected from the Internet for your reference only. The copyright belongs to the original author! )

01. yuweng Column

Conclusion 4 of Phase I of csdn: stream problems

Stream-related issues are roughly divided into the following categories. Question 1: basic operations; Question 2: encoding; Question 3: tail processing; Question 4: stream cache; Question 5: Resource release; last question, let's talk about how to use stream to update part of big files.Read the full text>

Use C # To copy Directories

There is no direct directory copy function in C #. Therefore, you need to traverse the source directory and copy files one by one.Read the full text>

How to save different types of files in the database

In fact, saving different types of files to the database is the same as saving images in the database. It is stored in byte form to the database.Read the full text>

How to map a shared network directory to a local drive

To map a network directory to a local drive, you need to call the wnetaddconnection2 function of the system DLL to add it.Read the full text>

How to map the network shared directory to a local drive (continued)

Someone raised a deeper question about the original article, that is, how to delete the drive letter without knowing it. It is not very complicated to get the drive letter at the beginning. You only need to query WMI.Read the full text>

Multi‑thread File Upload using WebService

With the help of WebService, it is very easy to upload files with multiple threads. Therefore, I will just make a simple example. If you want to implement this function, you can expand it on my own.Read the full text>

How to Use base64 for encryption and decryption

A simple base64 encryption and decryption class libraryRead the full text>

How to Use base64 for encryption and decryption (continued)

Since the methods provided by the previous articles when introducing the base64 method are too troublesome and the interface is not intuitive, I have recently modified the original method.Read the full text>

How to Use RC4 for data addition and subtraction

Recently, I helped a netizen solve the problem of RC4 addition and subtraction. Although there are similar problems on the Internet, it is not ideal for Solving Chinese characters. Therefore, I made changes based on others, for easy display, the encrypted string is displayed in hexadecimal notation.Read the full text>

How to Write multiple files into one file and break them down

Reading and writing a file is actually very simple, that is, using filestream for read or write. But how to write multiple files to the same file should be restored to multiple files. It is not enough to rely solely on filestream's read and write methods. First, you need to create a file index to indicate the location of each file in the current file.Read the full text>

02. encrypt the winform app. config file

03. driveinfo class in. NET 2.0

04. Basic File Operations

05. Use the Web. config file

06. Some Opinions on the file. Delete Method

07. Talking about the stream. Read Method

08. How to directly process the compressed files on the FTP server?

09. Use C #2.0 for File compression and decompression

Character encoding in 10. C #

 

11. Text File printing class library (C #)

12. C # multi-threaded delegate delegation to read multiple files and display them in the same text box

13. Download The winform File

14. Use the Treeview and listview controls to view local disk folders and files (winform)

15. How to Use the _ net configuration file

16. encoding conversion

17. Convert gb2312 files to unicode format

18. How do I determine the file encoding format ??

19. webbrowser control application: Play the pptfile

20. character encoding in C #

 

21. C # File Operations

22. What is. Net's asynchronous mechanism (asynchronous stream read/write)-Step 4

23. How to compress multiple files/folders (gzipstream and C #)

24. Net File Operations

25. Series 4: File Operations and file read/write

26. C # file operation series

27. Series 5: serialization and deserialization

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.