change initWithContentsOfFile -> initWithContentsOfFile:file encoding:enc error:err;if not , may return nil of the file , the cause 'NSScanner:nil string argument'
Merge pull request #2 from snowleung/master

-[NSString initWithContentsOfFile:] was deprecated, -[NSString initWithContentsOfFile:encoding:error:] is used instead