Purpose:Read standard input and write it to a file.

 

Format:SPONGE [/A] outputfilename

 

/A(ppend)

 

Usage:

 

Unlike output redirection, SPONGE reads all its input before opening the output file. This allows constructing pipes that read from and write to the same file. SPONGE reads standard input into a memory buffer, so piping extremely large amounts of data (i.e., multiple gigabyte) is not recommended.

 

Options:

 

/AAppend output to outputfilename. The default is to overwrite outputfilename.