nullfile
Name the null file

Description

Returns the name of the pseudo-file that ignores all data sent to it and signals end-of-file to every read request.

Usage

nullfile()

Details

The null file is not a real file but has the interfaces of one. All data written to the null file are silently ignored. All requests to read from the null file return an end-of-file indicator and no data data is returned from the read request.
Value
returns a character string specifying the name of the null file: "nul" on Windows and "/dev/null" on Unix-like operating systems.
Examples
sink(nullfile())
1:10000
sink()
4:1
Package base version 6.1.4-13
Package Index