Если вас не волнует, где происходит разделение (это может быть в середине слова и т. П.):
define ('TWEET_SIZE', 140);
$parts = str_split ($data, TWEET_SIZE);
$new = implode ("\n", $parts);
UPDATE
Как то так:
define ('TWEET_SIZE', 140); // set the size of each segment
$data = file_get_contents ('<path to file>'); // load the data from file
$parts = str_split ($data, TWEET_SIZE); // split the data
$new = implode ("\n", $parts); // put it back together with newlines
file_put_contents ('<path to new file>', $data); // put in new file (if needed)