Saar Gross wrote: > I want to take a piece of a string and put it in a new variable. > > QString file_info = "-rw-rw-r-- 1 saar saar 11 Jan 5 22:00 somefile.txt"; > > I want to take "-rw-rw-r--" (For example) and put it in a new variable. > > How can I do that ? QString permissions = file_info.mid(0,9); Pau Estalella.