1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

image how to deal with a .dat file containing characters

Discussion in 'C' started by laenos, May 14, 2012.

  1. laenos

    laenos New Member

    May 14, 2012
    Likes Received:
    Trophy Points:
    Hi everyone,

    I'm programming with Visual Studio 2005.

    Could anyone help me to read a .dat file who contains some columns of characters, it looks like the following:

    01 Magenta
    red 255
    green 0
    blue 255

    02 Turquoise
    red 64
    green 264
    blue 208

    How can I asign each data to a variable? For example, the color name to a variable named m_ColorName.

    Thank you very much in advance!!

Share This Page