open("example.txt","w") -- set the buffer size of 8K size = 2^13 f:setvbuf("full", size) -- write the contents f:write("Welcome to tutorialspoint.com", "\n") f:write("Simply Easy Learning", "\n") -- flush the w
The PHP fflush function forces a write of all buffered output to a file pointer. It's useful when you need immediate output without waiting for the buffer to fill. Basic DefinitionThe fflush function flushes the output to a file. It takes one parameter: the file pointer resource. Returns ...