Android Cant find a filepath

I have a script that locates and uses a .txt file. It works fine in editor. But when i build the game for Android (Target Device), game cannot load the same text file.

public void LoadWords()
{
    string filePath = "Assets/Resources/Dictionary/dictionary.txt"; 
    string[] words = File.ReadAllLines(filePath);
}

This is the part that loads the dictionary. It works fine in Editor but doesn’t work on Android.

My first preference is fixing the existing code somehow before trying a different method but whatever works, i’m happy.

Thank you in advance.

u can put txt in "Resources" folder and use

Resource.Load<TextAsset>(filepath)

or u can put it in "StreamingAssets" folder and use

UnityWebRequest.Get(Application.streamingAssetsPath + filepath)

I quit after a long period of trying and i decided to put it on a “normal” folder and reference it from the script. Here is the script for anyone who has the same issue:

var content = dictionary.text;
string[] words = content.Split("\n");