//DEPENDS ON NAMING CONVENTION for the models-here ANNs were used so it is netASC_ID.m
String filename = "net"+ASC_ID+".m";
String pathname="YOUR_RULE_STORING_PATH"; //DEPENDS ON WHERE THE RULES ARE STORED IN THE OCTAVE SCRIPT
fis = new FileInputStream(pathname+filename);
client.storeFile("/uploads/rules/"+filename, fis);//possible change according to path on FTP server
client.logout();
} catch (IOException e) {
System.out.println("Error connecting to ftp server for storing rules....");
e.printStackTrace();
}finally {