Skip to content

How to read content from a .txt file #25

Description

@jsortegac

Hi @hawk !

I'm new to Lux, but I have been "playing" with it for a while. Now I have a doubt about how to read some files (e.g. a .txt file) and "expect" some content. What I am doing at the moment is:

.lux file:

[doc prueba 4]

[global config4=$config4]
[global golden4=$golden4]

[shell uno]
    !echo ${config4}
    ?${golden4}

[cleanup]

And when I execute the lux command I do the following:
config4=$(cat config4.txt) golden4=$(cat golden4.txt) lux test4.lux

That way I am able to compare the content of that 2 files. But, is there a built in system to do that? or this is a "good" way?

Related to these question is another one. Am I able to use ?+ (undeterministic match) with the content loaded from a file?

Hope to hear you soon!

Thank you very much!
Jose

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions