I want to get all words of my documents, but i have a problem with `file` in this code.
How do i fill `file` the fields of file with the content of the documents? This is my code:

```
textfilename=['example' '*' '.txt'];
Alltextfiles = dir(textfilename);

for i=1:length(Alltextfiles)    
    fileID (i)  = fopen(Alltextfiles(i).name,'r+');       
    file (i)  = fscanf(fileID(i), '%c',inf);         
    words (i)  = regexp(file (i), ' ', 'split');    
end

```