gov.nasa.alsUtility
Class EasyFile
java.lang.Object
gov.nasa.alsUtility.EasyFile
- public class EasyFile
- extends java.lang.Object
create a file and add text to it from time to time
Field Summary |
protected java.io.PrintWriter |
file
|
protected java.lang.String |
filename
|
Constructor Summary |
EasyFile(java.lang.String f)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filename
protected java.lang.String filename
file
protected java.io.PrintWriter file
EasyFile
public EasyFile(java.lang.String f)
- Parameters:
f
- the filename
containsData
public boolean containsData()
print
public void print(java.lang.String s)
println
public void println(java.lang.String s)
println
public void println()
close
public void close()
flush
public void flush()
printComaSeparated
public void printComaSeparated(double d)
- print d with a comma between it and all other entries
printComaSeparatedXYLine
public void printComaSeparatedXYLine(double x,
double y)
- print a with the form x,y
finalize
protected void finalize()
throws java.lang.Throwable
- close the file if necessary
- Throws:
java.lang.Throwable