why is the text not being written to my file??

Sometimes you might be doing everything right, but still the text you need might not be written to the file using bufferred/printwriter in java. The reason is that you might not have flushed the stream for the data to be written to the file. you can do it by using:

BufferedWriter bw = new BufferedWriter(new FileWriter(C:/Documents and Settings/KDarshan/My Documents/Buy/Technical Specifications/testKCAVVerify.txt));

……….. some logic


Leave a Reply

Your email address will not be published. Required fields are marked *