public class ASCIIFile extends DataFile
Modifier and Type | Method and Description |
---|---|
static void |
append(File f,
String t) |
static void |
concatenate(File f1,
File f2) |
static void |
main(String[] args) |
String |
read()
Read an ASCII File
|
static String |
read(File f) |
static double[] |
readDouble1DArray(File f) |
static double[][] |
readDoubleArray(File f) |
static int[] |
readInt1DArray(File f) |
static int[][] |
readIntArray(File f) |
static String |
readLine(File f,
int i) |
String |
readLine(int i)
Read only one line in an ASCII File
|
String[] |
readLines()
Read lines of an ASCII File
|
static String[] |
readLines(File f) |
static void |
write(File f,
String t) |
void |
write(String text,
boolean append)
Write a text in an ASCII File
|
static void |
writeDoubleArray(File f,
double[] array) |
static void |
writeDoubleArray(File f,
double[][] array) |
static void |
writeIntArray(File f,
int[] array) |
static void |
writeIntArray(File f,
int[][] array) |
public ASCIIFile(File f)
public static double[] readDouble1DArray(File f)
public static double[][] readDoubleArray(File f)
public static int[] readInt1DArray(File f)
public static int[][] readIntArray(File f)
public static void writeDoubleArray(File f, double[] array)
public static void writeDoubleArray(File f, double[][] array)
public static void writeIntArray(File f, int[] array)
public static void writeIntArray(File f, int[][] array)
public String read()
public String[] readLines()
public String readLine(int i)
i
- line indexpublic void write(String text, boolean append)
text
- Stringappend
- booleanpublic static void main(String[] args)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics