For your second question read this post from @Fox ,
maybe its what you need. Its in Russian, but you can
use translator. There is an example script too >
In the browser, all these scripts are executed automatically, if you work with the site via the http-client, then you will have to execute these scripts manually.
You asked this question, I think you are new, and the message cannot tell you all about your problem, because there is a lot of information as well as different use cases.
So you can follow the basic instructions.
Create a new resource with type LinesFromFile.
a1.png
a2.png
Use Parse CSV string.
A3.png