My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
OmFile  
Updated Jul 28, 2011 by polyc...@gmail.com

#OmFile -- File Utilities

Introduction

OmFile consists of static methods for reading and writing files. Also, for manipulating directory paths.

Notes

  • File and Directory are described by Strings throughout.
  • The path separator is forward slash, nothing else.
  • Backward slashes are accepted, too.
  • Windows paths are supported, like C:/somewhere/around.txt (with forward slashes).
  • Directories are identified unambiguously by ending with a slash.

Some of the methods

public static List<String> readDirectory(String directoryPath,boolean absolutePaths)
public static String getAbsolutePath(String relativePath)
public static String readFile(String filePath)
public static byte[] readFileBytes(String filePath)
Powered by Google Project Hosting