IO stream-ApacheIO package (ten)

IO stream-ApacheIO package (ten)

  1. Apache IO 包

    The file-related classes provided by JDk, but the functions are very basic, and a lot of programming work is required for complex operations. In actual development, you often need to write related code by hand, especially when traversing directory files, recursion is very cumbersome and very cumbersome. The Apache-commons toolkit package provides IOUtils/FileUtils, which allows us to operate files and directories very conveniently. This article is to give you a comprehensive understanding of IOUtils/FileUtils .

  2. Download and add the commons-io package

Insert picture description here

  1. Unzip the file after downloading

Insert picture description here

  1. This is the jar package we are about to add

Insert picture description here

  1. Enter IDEA and add our jar package to the project

    • Select project structure

Insert picture description here

  • Select Libraries, select +, select java

Insert picture description here

  • Select the corresponding location of the jar and add it

Insert picture description here

  • Added successfully

Insert picture description here

Guess you like

Origin blog.csdn.net/Xun_independent/article/details/114901911