Home > Automation Testing > Java library for text file operations

Java library for text file operations

To perform text file operation like Create File, Compare Text file, Replace words etc we have created jar which you can download Attached Zip File: TextUtility 

After extracting zip file you will get jar file which contains below functionality which is extremely easy to use.

Functions

appendLine → Read Text File and append new line to existing text file.

compareTextFiles → Compare two text files and also consider or ignore case.

createTextFile → Used to create new text file.

readTextFile → Used to read text file and returns List of lines.

replaceRegrex → It will search text based on regular expression and replace all matching text from file.

searchRegrex → Search String using regular expression/String.

This Article is TAGGED in , , , , . BOOKMARK THE permalink.

Avatar photo
Neeraj Vishwakarma
Senior QA Engineer Skills: Automation Testing, Manual Testing, STLC, Java, Selenium Webdriver, Protractor, Database Testing.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">