This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Let's start with the "more typing" solution. There are shorter ones but this one will get you started. In this forum we often give broad hints and send you looking in the API for details ...
Look at the API docs for String to see if you can find "position of" and how to get the part of a string up to position i, the part of a string after position i. Take a shot at some code and let us see how it works.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Joined: Sep 08, 2004
Thanks Stan for your reply. I was confused by the "^M" in the unix text file. After I replaced it with "\r\n", everything works now.