devxlogo

Read the First Line of a Text File

Read the First Line of a Text File

This code shows you how to use the instance methods from the FileReader and BufferedReader classes with a Xalan 2 processor to read the first line from a text file.

	                          	           

Note: This tip was tested on Xalan, version 2.7.0.

devx-admin

Share the Post: