Strings

Pau Estalella pau.estalella at upcnet.es
Thu Feb 10 00:58:00 GMT 2000


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.





More information about the KDevelop mailing list