How to read a string from a text file?
This does not work, but the file is open.
#include "DarkGDK.h"
char *String;
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbOpenToRead ( 1, "In.txt" );
dbReadString(1,String);
if(dbFileOpen(1)){
dbText(100,100,"Open");
}
dbText(100,100,String);
while ( LoopGDK ( ) )
{
dbSync ( );
}
}
I do not quite understeand the concept and uses of pointers, I guess that is what is messed up here.
My goal is to make Dark GDK as a visualization platform from another project. The main project will be sending in strings and arrays for the Dark GKD to display.
Can anyone help me read this "Hello"?