I tried but I could not get out of it 


I am sure there are more ways then one to do it, but for our purposes let's do it with a javascript snippet.
Assign a variable name to your TEB. In the example below I am going to use the variable test.
Using javascript and the CP (captivate object) we can pull out. Assign an action to execute javascript upon hitting the submit button that comes along with your TEB.
In script window use the following:
let myPulledValue =window.cpAPIInterface.
getVariableValue
("test");
You now have whatever was entered in the TEB assigned to myPulledValue
Now myPulledValue is available to you from javascript. You could collect all your values, and put into an object, or and array and then write to a file.
One more thing for testing and validation if you are not familiar. Using chrome command opt J on mac or ctrl opt J on PC. This will open console, in the same javascript window that we added the above command you can add
console.log(myPulledValue);
Now when you preview HTML5 in browsers, open the console you will be able to see the value that was in your textbox. Great for verifying and debugging to ensure that you are pulling value out right.
Hope that helps
Brian