Read serial data using C++ (in Linux)

I'm essentially looking for a way to re-create the function of the serial monitor in C++ on Linux (netbeans) so I can take the char array sent from the arduino and pass it into a char array in my C program that I can then tokenize and do further processing on.