JAVA利用IO流实现类似于超市购物售货记录本地保存的功能 代码如下: @Test public void testScalesRecords() { File file = new File("scalesRecords.txt"); PrintStream printStream = null