I have a question I am reading in the names of files in a folder eg John.jpg Bob.jpg James.jpg I then want to print them out again but I want to strip off the file extension so I am then just left with just the file names eg John Bob James Can any one show me how to do this ?