How to store the values of multiple selection in variables

I have written a selectInput that allows for the selection of many files: I am able to print the files with. I am able to print all the files as they are selected by the user from the drop-down. I know that the filenames are stored in input$selecfile. How do i access each and everyone of the files selected by the user and store it in a variable? Is input$selectfile a list?, a vector?

selectInput('selectfile', label = "Select files. To undo selection select the selected file again and press delete",c(Choose='', list.files()), multiple=TRUE, selectize=TRUE),


output$selectF <- renderPrint({
output$selectF1 <- renderText({