Wouldn't it much easier to just use XCode and write a console program ? Cost nothing, download from AppStore and get the basic done with with the help of the GUI. Once it's run you could (if you really) want use the command line mode of Xcode; but why these days.
Sorry, Borland I did not see in the last 20 years; my memory how it looks are vanished. My memories on XCode are fresh
Sorry, Borland I did not see in the last 20 years; my memory how it looks are vanished. My memories on XCode are fresh