I also posted this in the jitter subforum as a follow up on a different question, however the people interested in this topic would probably be here, also for building the knowledge database.
What am I doing wrong here?
myfile = new File(filename, "read");
newName = new String(myfile.filename);
newName = newName.substring(0, newName.length - 4) + "_x.avi";
newFile = new File(location + newName, "readwrite", myfile.filetype);
There is probably a fundamental flaw in the while loop or the filetype, however I can not see my mistake.