Link to home
Start Free TrialLog in
Avatar of Cuec
Cuec

asked on

Read the contents of a text file into form

I want to fill in a form with contents of a text document.The text document has a template consisting of the form field names. I want to search for keywords and then pull out the relevant information and insert them into the approperiate fields. I'll like to know what the best way of doing this is and specifically, how to read the contents of the textfile.
I have so far done:
@Command([EditGotoField];"Body");
FileName:=@Prompt([LOCALBROWSE];"Select the Text file";"Please select the Text document";"";"";3);
@Command( [EditInsertText];FileName;"1");
@Command( [EditInsertFileAttachment];FileName;"1")
but that dumps an attachment into the field.

....any ideas how to do this?
ASKER CERTIFIED SOLUTION
Avatar of HemanthaKumar
HemanthaKumar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Zvonko
Zvonko
Flag of North Macedonia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial