"Doesn't work, nothing works" are not helpful. What does work? Can you write a simple script to react to user input? Can you read from a file? Can you write to a file? Where is your code? At what line is it failing?