Hello guys, i have a simple doubt. One problem I am not getting. Read a text file and add a line at the end of it. '-' Does anyone have any idea?

Open the file in append mode the write a line to it. The os will put the new line after the last line of the file. See the a+ flag here.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.