Using file type to read sample.
Add data for files or string.