How to read read from text file and load the data into Text Edit Box component?Hello,
I am trying to save the content from a window into the Text file. After saving it, I am trying to give user the capability to read the content from the saved text file and populate it in the Text Edit Box so that they don't have to retype again.
I was able to save the text file by using Save Text function.
I was also able to browse the text file by using Pick File function.
I need help with the extraction of the data and the populating it in the Text Edit Box.
Following is my code:
initial_ECN = ""; // Define initial_ECN outside of the function
initial_PIDTag = "";
// Define a function to create the input window
WinInput = Function({},
ECN = initial_ECN;
PIDTag = initial_PIDTag;
New Window( "Input", <<MODAL></MODAL>
Automation and ScriptingConsumer and Market ResearchContent OrganizationData AccessData Blending and CleanupData Exploration and VisualizationWindowsRe: How to read read from text file and load the data into Text Edit Box component?Try Load Text File() instead of Read File()
https://www.jmp.com/support/help/en/17.2/#page/jmp/file-functions.shtml?os=win&source=application#ww4957499

Re: How to read read from text file and load the data into Text Edit Box component?Please see the attached photos.. Any help is much appreciated.



Re: How to read read from text file and load the data into Text Edit Box component?Hi Jarmo,
Thanks for the response.
I am able to read the file using Load File function. How do I parse data and extract information. The split function doesn't work in JMP.
initial_ECN = ""; // Define initial_ECN outside of the function
initial_PIDTag = "";
// Define a function to create the input window
WinInput = Function({},
ECN = initial_ECN;
PIDTag = initial_PIDTag;
New Window( "Input", <<MODAL></MODAL>Re: How to read read from text file and load the data into Text Edit Box component?I'm not sure where you are getting your functions from but those aren't JSL functions. Utilize Scripting Index with correct category (Character in this case) and check out what functions JMP does offer (most likely you are looking for Words())

https://www.jmp.com/support/help/en/17.2/#page/jmp/list-functions.shtml?os=win&source=application#ww2491421