I'm experiencing a file-manipulation-problem:
My program reads in a textfile, which contains data in a certain format and produces a new textfile containing the data in the desired format (for analyzing-purposes).
The constructor of my convertor is as follows:
public Convertor (String i, String o) throws FileNotFoundException, IOException{
input=new FileReader(i);
st=new StreamTokenizer(input);
os=new FileOutputStream(o);
output=new PrintWriter(os);
}
Problem: the output is generated correctly, though suddenly stops.
Should I use different read-write constructs, which allow me to define bufferlengths?
Thanks
My program reads in a textfile, which contains data in a certain format and produces a new textfile containing the data in the desired format (for analyzing-purposes).
The constructor of my convertor is as follows:
public Convertor (String i, String o) throws FileNotFoundException, IOException{
input=new FileReader(i);
st=new StreamTokenizer(input);
os=new FileOutputStream(o);
output=new PrintWriter(os);
}
Problem: the output is generated correctly, though suddenly stops.
Should I use different read-write constructs, which allow me to define bufferlengths?
Thanks