NOTE: This article assumes you know the basics of creating a zyLab. See "How to create a new zyLab" to get started.
NOTE: This article is primarily for zyLabs for C, C++, Java, and Python. zyLabs for Web Programming may have some differences. zyLabs for MATLAB uses a tool provided by Mathworks and may have larger differences.
To upload a file that your students can read from please refer to the card entitled "Additional files", located just above the "Test bench" card.
At the bottom of the card is a button called "Add file". Clicking that button will prompt you to add a new file.
Max size per file is 2,000 KB and total of all files combined is limited to 10,000 KB. Supported formats include plain text, audio, video, and image files.
Students will be able to access these files from their programs but they will not actually be able to view the files themselves unless you check the "Allow students to download" box.
To test if a student has correctly written to a file
- Create a compare output test.
- Select advanced grading options.
- Under "Student output comes from" select "File" and provide the name of the file.