All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.genexus.search.TextHandler Maven / Gradle / Ivy

Go to download

Core classes for the runtime used by Java and Android apps generated with GeneXus

The newest version!
package com.genexus.search;

import java.io.*;

public class TextHandler implements IDocumentHandler
{
        public String getText(String filename)
        {
			try (FileReader rd = new FileReader(filename))
			{
				File f = new File(filename);
				char[] buf = new char[(int)f.length()];
				rd.read(buf);
				rd.close();
				return new String(buf);
			}
			catch (IOException ex)
			{
				System.out.println(ex.getMessage());
				return "";
			}
        }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy