在Eclipse中:run-->Run Configurations-->右侧Common选项卡-->Standard input and output 栏-->勾选File复选框--> 文本框内写入要保存到本地路径和文件名称