Read your data of file into string'
Split them when '\' occurs...ans store them serially in array..........'
Then, put [0]--> Red, [1]-->Green, [2]-->Blue, [3]-->Red...and so on...'