i have completed one project on segmentation. when i click on a button to write the data in a text file then there are no write operation perform on the file...after writing file is blank...can anyone tell me why this happen to me.
Thakur Sachin Singh wrote:but problem is...when i write the data in this file then no data write to this file.
You close them in the backwards order. You need to close dos first, fos last. The way it's now, first you close the file then you close the intermediate filters, telling them to flush the data. They try to flush but the file is already closed, so they have nowhere to write to.