Save and Load Files with C# in Unity

Offered By
Coursera Project Network
In this Guided Project, you will:

Understand how to write basic file-handling code in C#.

Understand how to implement and use a JSON conversion tool.

Understand how to obfuscate a text file using a simple pseudo-encryption algorithm.

Clock1 hour
BeginnerBeginner
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

In this one-hour, project-based course, you'll learn how to save and load text files using C#'s System.IO Library. You'll also learn how to obfuscate a text file using a simple pseudo-encryption algorithm. The guided project will introduce you to the following coding concepts: - Basic File Handling - JSON Format - XOR Pseudo-cypher This is a stand-alone guided project, and also serves as an optional but recommended foundation for the "Save a Dynamic Scene with C# in Unity" and "Encrypt and Decrypt Files with C# in Unity" courses. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Skills you will develop

  • Video-game Development
  • C sharp (C#) Programming Language
  • Unity 3D
  • Unity
  • Application development

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Introduction and License Activation

  2. Save a Text File

  3. Load a Text File

  4. Save Objects in JSON Format

  5. Deserialize JSON

  6. Obfuscate the Text File

  7. Dynamically Get File Path

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.