Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
To get the list of directory files in an out outfile without extension
I am started writing the pythan program by reading tutorials and requesting experts help. I tried with below code but did not work for me.
If the folder has say FILE1.CBL, FILE2.CBL, FILE4.TXT and FILE3.CBL.
I need the output in the OUTPUT FILE as below
Path = os.getcwd()
count = 0
filenames = glob.glob("*.cbl")
cobolfile = open('outlib.txt', 'w')
raw_input("Press Enter to Exit")
0 · ·