Community Forums
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2010
    Location
    New Zealand
    Posts
    13
    DT Subscriber

    Communication with Notification Centre Course - Compiler Error

    Hi, when I run the game I get the error message -

    Assets/Plugins/PlayerPrefs.cs(224,51): error CS0117: `System.IO.File' does not contain a definition for `CreateText'

    I've investigated the scripting documentation resource on the Unity website and been unable to find any answers. Please help. Cheers

  2. #2
    Join Date
    Nov 2010
    Location
    New Zealand
    Posts
    13
    DT Subscriber

    Re: Communication with Notification Centre Course - Compiler Error

    This is the code.

    StreamWriter fileWriter = null;
    fileWriter = File.CreateText(fileName);

  3. #3
    Join Date
    Nov 2010
    Location
    New Zealand
    Posts
    13
    DT Subscriber

    Re: Communication with Notification Centre Course - Compiler Error

    The same file also causes the same issue in several other courses...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts