Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
RA hRA;
string(128) sLine;
int i,iLines;

{
    hRA = Create_RA(“test.txt”"œtest.txt");   // create handle to the file “test.txt”"œtest.txt"
    iLines = iLen_RA(hRA);         // get the number of lines in the file

    for (i=0;i<iLines;i++)
    {   // go through every line          
        iGets_RA(hRA,sLine);    // read the next line, ignore return value           
        DisplayMessage_SYS(“test.txt”"œtest.txt",sLine);  //  display the line
    }
    Destroy_RA(hRA);               // destroy the handle to the file
}