package me.xdrop.jrand.data;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

public class AssetLoader {
    public List<String> loadAsset(String assetName) {
        ClassLoader classLoader = getClass().getClassLoader();
        File file = new File(classLoader.getResource(assetName).getFile());
        try {
            InputStream inputStream = new FileInputStream(file);
        } catch (FileNotFoundException e) {
           return new ArrayList<>();
        }
        return new ArrayList<>();
    }
}

@@ -42,110 +42,9 @@
 .io.
-File;%0Aimport java.io.FileInputStream;%0Aimport java.io.FileNotFoundException;%0Aimport java.io.InputStream
+*
 ;%0Aim
@@ -325,79 +325,258 @@
     
-try %7B%0A            InputStream inputStream = new FileInputStream
+List%3CString%3E list = new ArrayList%3C%3E();%0A        reverse(list);%0A        try %7B%0A            BufferedReader reader = new BufferedReader(new FileReader
 (file)
+)
 ;%0A
+            while(reader.ready()) %7B%0A                list.add(reader.readLine());%0A            %7D%0A%0A
     
@@ -592,20 +592,10 @@
 ch (
-FileNotFound
+IO
 Exce
@@ -658,32 +658,175 @@
 %7D%0A        return
+ list;%0A    %7D%0A%0A    public static void reverse(List%3C?%3E list) %7B rev(list); %7D%0A    private static %3CT%3E void rev(List%3CT%3E list) %7B%0A        List%3CT%3E tmp =
  new ArrayList%3C%3E
@@ -828,17 +828,136 @@
 ist%3C
+T
 %3E(
+list
 );%0A    
-%7D
+    for (int i = 0; i %3C list.size(); i++) %7B%0A            list.set(i, tmp.get(list.size() - i - 1));%0A        %7D%0A    %7D%0A
 %0A%7D%0A

Update file read function