get.ext {reader} | R Documentation |
Get the file extension from a file-name.
get.ext(fn)
fn |
filename(s) (with full path is ok too) |
returns the (usually) 3 character file extension of a filename
Nicholas Cooper nick.cooper@cimr.cam.ac.uk
get.ext("/documents/nick/mydoc.xlsx") get.ext(c("temp.cnv","temp.txt"))