This is my
 import os
  filenames= os.listdir (".")  
file = open("XML.txt", "w")
result = []
for filename in filenames:
    result = "<capltestcase name =\""+filename+"\"\n"
    file.write(result)
    result = "title =  \""+filename+"\"\n"
    file.write(result)
    result = "/>\n"
    file.write(result)
file.close()
My Question /help needed I want to add standard text "" to the txt generated, but i cant add it, it says sytax errors can somebody help with code please.
2) how can i just copy foldernames from directory instead of file names , since with my code , it copies all file names in into txt.
Thank you frnds ..
file.write("\\")
 
     
     
    