<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">i have the following code :<br><br>   elif choice == "3":<br>        print "all users list :"<br>        print"\n"<br>        import active_directory<br>        for user in active_directory.search ("objectCategory='Person'", "objectClass='User'"):<br>         print user<br>        <br>i want to<span style="background-color: rgb(255, 255, 64);"> write  </span>the output of the code (<br><br>LDAP://CN=bessy,OU=sales,DC=shay,DC=com<br>LDAP://CN=ron,OU=legal,DC=shay,DC=com<br><br>to a text \  csv file ... <br><br>can any one help ??<br><br><br>     <br><br><br><br><br><br></td></tr></table><br>