get.ext {reader}R Documentation

Get the file extension from a file-name.

Description

Get the file extension from a file-name.

Usage

get.ext(fn)

Arguments

fn

filename(s) (with full path is ok too)

Value

returns the (usually) 3 character file extension of a filename

Author(s)

Nicholas Cooper nick.cooper@cimr.cam.ac.uk

See Also

rmv.ext

Examples

get.ext("/documents/nick/mydoc.xlsx")
get.ext(c("temp.cnv","temp.txt"))

[Package reader version 1.0.6 Index]