title: Unity stops though code edited with String Builder
body: <p>I'm doing an experiment of dropping a ball from Unity. There was no problem with the script when only <strong>one</strong> was dropped. But when I drop about <strong>100 balls</strong>, Unity keeps stopping.</p>
  <pre><code>    //Debug.Log(transform.position.ToString());   
      Debug.Log(dir);
      filepath = dir + num + transform.position.ToString();
      Debug.Log(filepath);
      File.Create(filepath);
  }
  </code></pre>
  <p>At first, I operated Unity using the above script.</p>
  <pre><code>FileStream fs = File.Create(filepath);                     
  fs.Dispose();
  </code></pre>
  <p>Also, I changed like the above, however, still unity freezed.</p>
  <p>Finally, With several advices <a href="https://stackoverflow.com/questions/69734331/unity-freezes-when-adjusting-the-script-to-many-objects?noredirect=1#comment123263297_69734331">here</a>, I wrote a new script like this:</p>
  <pre><code>        //Debug.Log(transform.position.ToString());   
          Debug.Log(dir);
          filepath = dir + num + transform.position;
          Debug.Log(filepath);
          System.IO.File.WriteAllText(filepath, name.ToString());
      }
  </code></pre>
  <p>Nevertheless, Unity stops again after unity starts to operate for a certain period of time. So is this no longer a script issue? I don't think it's a problem with RAM because my desktop is using 16GB RAM. I continued to modify the code, but it still seems to stop, so I want to get the correct code or solution. I don't have to have multiple files. It can be a single file, so I want it to work.</p>