at.knowcenter.wag.egov.egiz.tools
Class FileHelper
java.lang.Object
at.knowcenter.wag.egov.egiz.tools.FileHelper
public class FileHelper
- extends Object
This class provides file reader and writer methods. All methods are static!
- Author:
- wlackner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileHelper
public FileHelper()
readFromFile
public static String readFromFile(String fileName)
- This method reads a file by reading line by line.
- Parameters:
fileName
- the file to be read
- Returns:
- the content string of the file
writeToFile
public static boolean writeToFile(String fileName,
String fileString)
- This method writes a file line by line.
- Parameters:
fileName
- the file to be writtenfileString
- the content to be written
- Returns:
- true if the file could be written sucessfully, false otherwise
Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.