LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

save multi-line textbox into .text file

Hi , 

I' d like to save the content of a textbox line by line  in a  .text file as a first step ,... and then to re-use that file ! 

Could someone  helps me !

 

0 Kudos
Message 1 of 4
(2,902 Views)

This can be easily solved: GetnumTextBoxLines returns the number of lines in the Textbox control, then you can use GetTextboxLine to retrieve the control contents line by line.

If you want to know the functions you can use with a particular control, you can right-click on the control and select Control Help in the context menu: in the control help page you'll find the list of functions you can use with such a control.



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?
Message 2 of 4
(2,883 Views)

thank you for replying! 

this is already done ! my problem is how get these lines to external .txt file  as a first step and as a seconde step i want to explore an external text file and get information from it .

0 Kudos
Message 3 of 4
(2,880 Views)

So if one task is already solved why you put it into your question??!?! Smiley Mad

 

Writing to a file can as simple or as complicated as you want: in this thread you can find a conceptual framework that can give you some idea to work on (and I have found it with a simple search in the forum board Smiley Wink )::

how to read columns from text file and save in another text file

 

It's not the place here where to explain file I/O in detail: start designing our solution, look either into ANSI C >> Input Output  library or Formatting and I/O Library and search for examples in CVI (Help >> Find examples...) and/or in this board, you'll find tons of examples and discussions to consider; come back here when you have some doubt a bit more detailed than "How to write to a file"



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 4 of 4
(2,870 Views)