You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The below code makes a new file which keeps the old data and adds new data at the top of old data and then saves it as the same name, giving an illusion of appending, where as it is just re-witting.
'''
csv = '.csv'
varToReadFile = open('shit'+csv, 'r').read() # This can be any variable to open / create file, it van be var also instead of varToOpenFile
print(varToReadFile)
varToWriteFile = open('shit.csv', 'w') # This can be any variable to open / create file, it van be var also instead of varToOpenFile