LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to convert achar array to char string in labwindows/CVI?

I read a txt file, i want to have the char array convert to char string,and place the converting char string into a string indicator.how to carry out? 
0 Kudos
Message 1 of 2
(4,438 Views)

Why do you want to perform such a conversion? If as an example you are reading with ReadLine, you can simply pass the string buffer to SetCtrlVal and display the text.

static char buffer[256];
static int fileHandle;

ReadLine (fileHandle, buffer, 255);
SetCtrlVal (panelHandle, PANEL_STRING, buffer);



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(4,435 Views)