mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-12-03 04:47:16 -05:00
21 lines
307 B
Haxe
21 lines
307 B
Haxe
|
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;
|
||
|
}
|
||
|
}
|