. Net pseudo-original code synonym replacement

Source: Internet
Author: User

 

After two days, I checked n more materials and finally made them. I put them in the background and sent them again.ArticleDirectly copy and paste the words in the article and replace them with my invincible 17000 synonym library. Here we use the ACCESS database, which is basically invisible to Baidu and Google, true pseudo-originality!

Collect data tomorrow and replace it automatically after collection!

Public String dealword (string CNT) // pseudo-original function, tao2581 zhentou.net <br/>{< br/> string temp = CNT; <br/> // temp = "test"; <br/> // create a database connection <br/> oledbconnection aconnection = new oledbconnection ("provider = Microsoft. jet. oledb.4.0; Data Source = "+ system. web. httpcontext. current. server. mappath ("tyc. mdb "); </P> <p> // create a command object and save the SQL query statement <br/> oledbcommand acommand = new oledbcommand (" select * from TB ", aconnection); <br/> aconnection. open (); </P> <p> // create a datareader <br/> oledbdatareader areader = acommand. executereader (); </P> <p> // cyclically traverse the database <br/> while (areader. read () <br/>{< br/> temp = RegEx. replace (temp, areader ["tid1"]. tostring (), areader ["tid2"]. tostring (); <br/>}< br/> areader. close (); </P> <p> // close the connection, which is very important <br/> aconnection. close (); </P> <p> return temp; <br/>}</P> <p>

 

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.