|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--file
This is a class for reading and writing textfiles. basic use :
| Constructor Summary | |
file()
|
|
| Method Summary | |
void |
close()
close both the file opened for reading and the one for writing (if any) |
static double |
dnum(java.lang.String s)
converts a String to a double. |
static int |
num(java.lang.String s)
converts a String to an int. |
java.lang.String |
read()
read one line of the input file. |
void |
readclose()
close the file opened for reading. |
void |
readopen(java.io.File f1)
open a file for reading. |
void |
readopen(java.lang.String f1)
open a file for reading. |
void |
write(java.lang.String s)
Write out the given string as a separate line. |
void |
writeopen(java.io.File f1)
open a file for writing. |
void |
writeopen(java.lang.String f1)
open a file for writing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public file()
| Method Detail |
public void readopen(java.lang.String f1)
public void readopen(java.io.File f1)
public java.lang.String read()
public void readclose()
public void writeopen(java.lang.String f1)
public void writeopen(java.io.File f1)
public void write(java.lang.String s)
public void close()
public static int num(java.lang.String s)
public static double dnum(java.lang.String s)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||