Check the filename... are you sure your file is not named balance.txt.txt or some similar problem? Are you sure the file already exists? For Input doesn;t automatically create the textfile