If you have web server serving you the html file, you can use something
like  `Http.getString "/a.txt"` to request the contents of that file.




On Fri, Mar 10, 2017 at 4:16 PM, Márton Szabó <jollybl...@gmail.com> wrote:

> Hi,
>
> I am quite new to elm, and I have a noob question. I need the contents of
> a file as a string.
> How can I do that?
>
> For example:
>
> a.txt is in the same directory as my compiled html file.
>
> I need the value of the string in the file simple in a variable in the elm
> program.
>
> How can I achieve that?
>
> Thank you very much!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
There is NO FATE, we are the creators.
blog: http://damoc.ro/

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to