public File getFileList() throws IOException, Exception{
                sendDataToClient("$ADCGET file files.xml 0 -1|");
                String response = getClientData();
                int filesize = Integer.parseInt(response.split(" ")[4]);

                //getting the file
                String fileString = "";
                InputStream input = getConnection().getInputStream();
                int read = 0;
                while (read<filesize){
                        int availableBytes = input.available();
                        byte[] inputBuffer = new byte[availableBytes];
                        input.read(inputBuffer);
                        fileString += new String(inputBuffer);
                        read+=availableBytes;
                }
                //TODO: convert a string into a file object.
                return null;
        }