<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">hello to all !!<br><br>given the 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>""<br><br>that lists all active directory personal ...<br><br>how can i pipe this into a csv file ??<br><br>or a text file ?<br><br>do need to first make it txt and then csv??<br></td></tr></table><br>