1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-16 03:43:36 +00:00
Funkin/source/CoolUtil.hx

21 lines
307 B
Haxe
Raw Normal View History

2021-01-15 04:33:12 +00:00
package;
import lime.utils.Assets;
using StringTools;
class CoolUtil
{
public static function coolTextFile(path:String):Array<String>
{
var daList:Array<String> = Assets.getText(path).trim().split('\n');
for (i in 0...daList.length)
{
daList[i] = daList[i].trim();
}
return daList;
}
}