importing RAW files

hi, i want to load a RAW file to a scene in OpenGL. i need to load the file using a for loop. in each line in the file i have 6 values that stand, if i understand correctly, for RGBRGB values. first, i’m not sure that this is correct. second, how can i use these RGB values to load an entire object in OpenGL? any advice or direction will be very much appreciated.