07-18-2008 01:54 AM
07-18-2008 04:21 AM
This way might be easier:
FILE *fp;
char line [256];
fp = fopen ("TextFile.txt", "rt");
while (fgets (line, 256, fp))
SetCtrlVal (panel, PANEL_TEXTBOX, line);
fclose (fp);
JR
07-20-2008 06:12 AM
07-21-2008 12:52 AM
07-27-2008 10:16 AM
IT is much simpler if you use the ini-file management and read values using tags
(the content of the ini file)
[SECTION]
TAG1 = value1
TAG2 = value 2
-----------------------
IniText Settings;
int linepos;
char line[MAX_LINELEN+1]
Seetings=Ini_New(0);
Ini_FeadFile(Setting);
GetRawString(line,"Section],"Tag1",line);
InsertTextBoxLine(panel,control,linepos,line);
regards: layosh