@@ -0,0 +1,1005 @@
+package com.blarg.gdx.io;%0A%0Aimport com.badlogic.gdx.Files;%0Aimport com.badlogic.gdx.Gdx;%0Aimport com.badlogic.gdx.files.FileHandle;%0A%0Apublic final class FileHelpers %7B%0A%09public static String getPath(FileHandle file) %7B%0A%09%09return getPath(file.path());%0A%09%7D%0A%0A%09public static String getPath(String filename) %7B%0A%09%09int pos = filename.lastIndexOf('/');%0A%09%09if (pos == -1)%0A%09%09%09return %22%22;%0A%09%09else%0A%09%09%09return filename.substring(0, pos + 1);%0A%09%7D%0A%0A%09public static boolean hasPath(String filename) %7B%0A%09%09return filename.contains(%22/%22);%0A%09%7D%0A%0A%09public static FileHandle open(Files.FileType type, String path) %7B%0A%09%09if (path == null)%0A%09%09%09throw new IllegalArgumentException(%22path can not be null.%22);%0A%0A%09%09switch (type) %7B%0A%09%09%09case Classpath: return Gdx.files.classpath(path);%0A%09%09%09case Internal:  return Gdx.files.internal(path);%0A%09%09%09case External:  return Gdx.files.external(path);%0A%09%09%09case Absolute:  return Gdx.files.absolute(path);%0A%09%09%09case Local:     return Gdx.files.local(path);%0A%09%09%09default:        throw new UnsupportedOperationException();%0A%09%09%7D%0A%09%7D%0A%7D%0A

add file loading and path string extraction helper methods