save list

when i try to save a list using this


import GameLogic as g

file = open("savepos.pos", 'w')
file.write(g.orcam)
file.close()

it says


import GameLogic as g

file = open("savepos.pos", 'w')
file.write(str(g.orcam))
file.close() 

its because it wants a string not a list. Toconvert a string into a list use str() command

thanks it works