5th program, Java remove copyright information! Recursively scans the folder and replaces the text in the entire folder with the words in the file that ends in HTML.

Source: Internet
Author: User


This is my 5th program.

Although these five programs are very small programs, but after finishing very happy ... Full of the most basic knowledge points, but the combination of these things is a dog. I can do this! That's it! Change the wrong way, to almost suspect life. In particular, the recursion inside of the two nested if that logic! The dog of the Whole Earth Day. At first it was connected with &, and for half a year, the beard was white ... Later found that the original was locked in another place!!! So only if the inside sets an If ... Does not seem to have any special small program, oneself pure original writing time, 150ms of delay, 1500 of critical hit, full map all card, dead ... Let me calm down excited excited mood, find Cang teacher talk about life!

1, recursively scan all files in the folder, exclude non-HTML files, all the remaining I/O input

2, I/O input, one line of read file content, append Type I/O, and replace the content I want ... I/O output is a temporary file

3. Delete the source file and change the temporary file to the name of the source file.

4. Done

5th program, Java remove copyright information! Recursively scans the folder and replaces the text in the entire folder with the words in the file that ends in HTML.

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.