Added random name to text file.
Changing file declaration.
Added closing file.
Miss try options to file usage.