Whats better Playerprefs or Text

Whats better using player prefs to save data or saving it to a text file.
It text is better coudld you tell me how to create and write in a text file.

The answer depends on what you’re trying to do.

Are you trying to read/write data at run time or build time?

For example:

If you want to know what level the player should start at, you would use PlayerPrefs.

If you’re trying to read data about a terrain grid, you would probably use a text file.

If you’re trying to read from a text file in the editor, you want to learn about TextAssets.

If you want to write to a file at runtime, you need to use .Net’s System.IO library.