Blank file after writing to it?

前端 未结 3 1453
旧巷少年郎
旧巷少年郎 2021-01-18 02:54

So I have been trying to write a Bukkit plugin for a friend of mine, and for some reason the config generation is not working. The code in question is below, and I will be h

3条回答
  •  执笔经年
    2021-01-18 03:30

    You need to flush or close the stream when you're done. Both are very important before exiting. Close will automatically call flush().

提交回复
热议问题