How can i read a text file in wing? #2547
Answered
by
staycoolcall911
schosterbarak
asked this question in
Q&A
-
Hey have a text file i'd like to read in my winglang function. |
Beta Was this translation helpful? Give feedback.
Answered by
staycoolcall911
May 16, 2023
Replies: 1 comment
-
Hey, I think for now you should use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
schosterbarak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, I think for now you should use
extern
to call external javascript, then use an fs package to read the file.Just in case you're unfamiliar with
extern
, you can see some examples here. Note that the external javascript should reside in a separate file (in the example I sent the external js is here).