In my C# windows application.
for example i have two buttons(Export and Cancel).
If i hit export button it will perfrom the operation like exporting/writing some large data to .CSV file.
Its working fine.
While writing to the .CSV file, when i hit the cancel button writing file need to be stop and delete the file.
Please share with me your ideas.