reader (version 1.0.6)

get.ext: 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

See Also

rmv.ext

Examples

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

Run the code above in your browser using DataLab