pub fn from_path<P: AsRef<Path>>(path: P, header: Header) -> Result<Writer<BufWriter<File>>> {
        File::create(path).map_err(::Error::from).and_then(|file| {
            Writer::new(BufWriter::new(file), header)
        })
    }
/// Creates a new writer for a path.
///
/// # Examples
///
/// ```
/// use las::Writer;
/// let writer = Writer::from_path("/dev/null", Default::default());
/// ```
Creates a new writer for a path.
Creates a new writer for a path .
pub fn from_path<P: AsRef<Path>>(path: P, header: Header) -> Result<Writer<BufWriter<File>>> {
        File::create(path).map_err(::Error::from).and_then(|file| {
            Writer::new(BufWriter::new(file), header)
        })
    }
pub fn from_path < P : AsRef < Path > > ( path : P , header : Header ) -> Result < Writer < BufWriter < File > > > { File :: create ( path ) . map_err ( :: Error :: from ) . and_then ( | file | { Writer :: new ( BufWriter :: new ( file ) , header ) } ) }
Creates a new writer for a path.
Creates a new writer for a path .
path
P
header
Header
examples
```
use las::Writer;
let writer = Writer::from_path("/dev/null", Default::default());
```
` ` ` use las :: Writer ; let writer = Writer :: from_path ( " / dev / null " Default :: default () ) ; ` ` `