Quote Originally Posted by vishal.chauhan View Post
Hi All,

I m using QT 4.1.5 on my MAC.
I have a QString to which I want to Encode to Numbers and then want to write it to a file.

So if anyone know how I can do it then plz help me.

Thanks.
For QStrings there is a toInt( ) (or toDouble( ), etc) function that will convert the string to the appropriate number.
http://doc.trolltech.com/4.1/qstring.html#toInt

To convert a number into a string, there is a static function QString::number( int num, int base ) http://doc.trolltech.com/4.1/qstring.html#number that returns a QString.