text: #FileExample2.py ----Writing data to file
  
  #opening file in write mode
  fp = open("info.dat",'w')
  
  #Writing data to file
  fp.write("Hello Suprit this is Python")
  
  #Check message
  print("Data Inserted to file Successfully!\nPlease Verify.")
  
  