Strings
Rene Maerten
delta_x at gmx.net
Wed Feb 9 23:28:19 GMT 2000
On Wed, 09 Feb 2000, you wrote:
> Hi,
>
> I have a little question about strings:
> 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 ?
> Thanks in advance,
> Saar
QString newString = old.mid(pos,count);
QString newString = old.left(count);
QString newString = old.right(count);
i hope i helped you !
--
Kind Regards
Rene Maerten
E-Mail: Delta_X at LinuxCoding.de
Home: http://www.LinuxCoding.de
Don't buy Windows Beta 2000, just try Linux !
Hi! I'm a signature virus. Copy me into your signature file to help mespread!
More information about the KDevelop
mailing list