Parsing a text file

Hello,
I need to parse a text file input and display on a text area on the same page.
I have selected parse file on the file input component and created an event handler to set value of the text area to fileInput.parsedvalue.
But this gives array output and is expecting string. appended toString to above, still does not work.
Added a separate button next to the file input with its own event handler. This also does not work

Any guidelines would be very much appreciated

1 Like

Hey @Venkat_Annapragada, and welcome to the forum!

Have you tried with fileInput.parsedvalue[0] ??

Best,
Miguel

1 Like

Thanks. this worked !

1 Like