Skip to content

Cannot open a file #11

@MrSmiley006

Description

@MrSmiley006

Hello everybody. I have a problem opening and reading a file using the "Opening a file" code from this repo. When I run the code, an exception is raised (I think it was a TypeError) that says something about indexing a nil value. Any help will be appreciated.
Edit:
The exception raised was computercraft.errors.LuaException, not TypeError.
It says: ['[string "temp["2"].close(); temp["2"] = nil:1: attempt to index field \'2\' (a nil value)']

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