When you use truncate on a file, does truncate cause the file to be closed and then reopened? Or does it just leave the file open until you use the close command?

Off the top of my head Im fairly sure it keeps it open - check the source.

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.