#!/usr/bin/env python3
#=========================================================================================
# delete the content of a file
#========================================================================================= 
import cgi                                 #cgi for web 

print("Content-Type: text/plain \n")       #required http response header (w/ extra line) for web

#file = '/home/sultans/web/python/demo/data/csv.txt'
file  = '/home/sultans/web/python/demo/data/json.txt'
#file = '/home/sultans/web/python/demo/data/xml.txt'

#===============================================================================================
# Main code
#===============================================================================================
f = open(file, 'w')                       #open file for write
f.close()                                 #close file

#===============================================================================================