getBytes() not working

Hi,

I just can't get this to work. My sketch seems to hang when I call this. Here is my code:

#include <Bridge.h>
#include <YunClient.h>
#include <FileIO.h>

YunClient Radio;
byte radioIP[] = { 192, 168, 0, 32 };

#define radioPort 4000

String readString;
String YunIP;

void setup() {
  Serial.begin(9600);

  while (!Serial);
  Serial.println("Started....");
  
  // Bridge startup
  pinMode(13, OUTPUT);
  digitalWrite(13, LOW);

  Bridge.begin();

  // File I/O startup
  while (!FileSystem.begin());
  
  digitalWrite(13, HIGH);

  // get the latest IP address of the Yun
  File dataFile = FileSystem.open("/graham/ip.txt", FILE_READ);
  if (dataFile) {   
    while (dataFile.available()) {
      readString = dataFile.readString();
      YunIP = readString;
    }
    dataFile.close();

    Serial.println(YunIP);
    
    // convert IP's to byte arrays
    YunIP.getBytes(radioIP, 4);
  }    
  
  int ret = Radio.connect(radioIP,radioPort);

  Serial.println(ret);
  Serial.println("Listening...");
}

void loop() {
    delay(50);
}

The serial monitor:

Started....
192.168.0.32

If I remove the getBytes() call I get:

Started....
192.168.0.32

0
Listening...

Any ideas??

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  while (!Serial);
  Serial.println("Started....");
}

void loop() {
  byte radioIP[4];
  String YunIP = "192.168.000.032";
  for (int i = 0; i < 4; i++) {
    radioIP[i] = (byte) YunIP.substring(i * 4, i * 4 + 3).toInt();
    Serial.println(radioIP[i]);
  }
  delay(2000);
}

"/graham/ip.txt" format should be "192.168.000.032"

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  while (!Serial);
  Serial.println("Started....");
}
void loop() {
  int commaIndex[4];
  commaIndex[0] = -1;
  byte radioIP[4];
  String YunIP = "192.168.0.32";
  for (int i = 1; i < 4; i++) {
    commaIndex[i] = YunIP.indexOf('.', commaIndex[i - 1] + 1);
    radioIP[i - 1] = (byte) YunIP.substring(commaIndex[i - 1] + 1, commaIndex[i]).toInt();
    //Serial.println(commaIndex[i])
  }
  radioIP[3] = (byte) YunIP.substring(commaIndex[3] + 1).toInt();
  for (int i = 0; i < 4; i++) {
    Serial.println( radioIP[i]);
  }
  delay(2000);
}

"/graham/ip.txt" format should be "192.168.0.32"