I have a big function that returns a list of objects. I basically need the results to be put in to a text file. The list contains objects of a class with attributes string Index and integer count. I would want it to be written in a textfile like: Index : Count fe.
BOOK_FROM_STORE : 27
Anybody has some guidance?