yashsmehta / mysqldump-to-csv

Python script to convert .sql dump to CSV format
MIT License
78 stars 31 forks source link

Create a new csv file for the result #1

Open RedArmy95 opened 3 years ago

RedArmy95 commented 3 years ago

For anyone who wants to create a new csv file for the result, just add

sys.stdout = open('Result.csv', 'a')

in the beginning of the code.

elvirag commented 1 year ago

No, this is horrible. don't override sys.std.out. I will make a pull request to have an option to get the name from the input