How to seperate the given string based on comma.

How to seperate the given string based on comma.

Hi,
 
How to seperate the given string based on comma.
 
EX: string str="seperate,the string based, on comma";
Result[0]="seperate";
Result[1]="the string based";
Result[2]="on comma";