Version: 2017.3
public string text ;

Description

The text contents of the .txt file as a string. (Read Only)

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public TextAsset asset; void Start() { print(asset.text); } }