GUI Text Object width

I have created a GUI Text object in the Unity editor through GameObject->CreateOther->GUI Text and called it "GUITextObject". In my code I change the text in the object like so:

boxText = GameObject.Find("GUITextObject");
boxText.guiText.text = "My string"; 

How do I find the width of this object with the above (or a different) string? I wish to print another Gui Text object just after the end of this object.

You can use GUIStyle.CalcSize to determine the width and height of a current string.

    boxText = GameObject.Find("GUITextObject");
boxText.guiText.text = "My string"; 

GUIStyle style = new GUIStyle();
style.font = boxText.guiText.font;

Vector2 size = style.CalcSize(new GUIContent(boxText.guiText.text));

Please Note: Unity 2.0 introduced UnityGUI, a GUI Scripting system. You may prefer creating user interface elements with UnityGUI instead of GUI Texts. Read more about how to use UnityGUI in the GUI Scripting Guide.

This guide can be found here:

The new way of drawing text is like this:

GUI.Label(new Rect(0,0,100,100),"Your text");

As far as I know there isn't a way to do this, since there's no mesh access to GUIText objects.