Skip to content

Conversation

OmerFI
Copy link

@OmerFI OmerFI commented Aug 10, 2022

Added a hash character which is a comment character in some languages.

Why?

If a developer wants to load parameters in txt files, the developer can easily exclude the lines that start with a hash character.

For example, in Python, the developer can write something like this:

with open("lfi-parameters.txt") as f:
    for line in f:
        line = line.strip()
        if line.startswith("#") or line == "":
            continue
        print(line)

Another solution is to exclude the first two lines, but I think it is better to use a comment character in txt files and exclude the lines that start with it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant