It becomes null because, as a rule, when you have an .app with associated resources, you need to add a file called Input.txt to the Supported Files folder or the Resources folder. Since you are writing a console application, I do not understand why you are doing this.
Before adding the Input.txt file to the file support:
2013-05-09 19:23:40.228 tester[2847:303] (null)
After adding the Input.txt file to support the files:
2013-05-09 19:21:00.306 tester[2807:303] /Developer/Xcode/DerivedData/tester-gjrofdlcblvmplbjdvvfhieiymzh/Build/Products/Debug/tester.app/Contents/Resources/Input.txt
source share