I want remove last 2 lines in my text file using java. I tried 4 or 5 different ways about this, but I can't find working code. I will edit file like this:
[
{
"example"
}
]
I want delete "]" , "}" and add "example2". How can I do that ?
(I'm using SE 1.8 , maybe version have an effect on this)
Can you recommend anything ?
Thanks.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…