Jump to content

from os import listdir


G+_Tnt Seeker
 Share

Recommended Posts

from os import listdir

Folder_Content = listdir("Encrypted_Files/") #list the entire content of the directory (Thank's to "Egbie Anderson" For helping me)

for counter in range(0,len(Folder_Content)):

    print counter, " --> " , Folder_Content[counter]

counter = 0

 

GetUserInput = raw_input ('What file would you like to Decrypt?(Only 10 files Will be able to be Chosen from) ')

if GetUserInput == 0 :

    File = open("Encrypted_Files/", Folder_Content[0] , "r")

    File2 = File.read()

   print File2 

 

It dosent print File2. Why?

Link to comment
Share on other sites

 Share

×
×
  • Create New...