I have a csv file.
On Certain condition, I want to make the file empty.
How i can make the file empty. as i dont not delete it & create a new file.
Please suggest any.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Will turn the CSV into a void. If you actually want a blank CSV file (as opposed to an empty file), then replace the
byte[]parameter with the actual bytes of an empty CSV file (from a template that you’ve prepared from Excel, for example).