Click here to Skip to main content
15,886,038 members

Comments by GenJerDan (Top 115 by date)

GenJerDan 28-Jan-21 7:18am View    
Right off the bat, ftpServerIP + "/" + fileInf.Name); will attempt to save "/fileName" because your ftpServerIP string contains a trailing /

Is "/" a valid character in a filename? Pretty sure not.
GenJerDan 21-Dec-20 5:03am View    
Me, if I was sure the extra characters were non-text/non-printable, I'd add a "trim" in there somewhere to remove all extraneous characters from the ends. That's cheating, of course.
GenJerDan 18-Dec-20 6:15am View    
Yeah, I went with if/else. Simple, if not fancy. And it's working, which is all that Higher cares about. LOL
GenJerDan 17-Dec-20 10:06am View    
That's my understanding of it, too. I just get nervous diddling with a live system. An example I found on the web has:
class Example {
static void main(String[] args) {
int[] array = [0,1,2,3];

for(int i in array) {
if(i == 2)
continue;
println(i);
}
}
}
in which everything gets printed except "2". I just wasn't sure if that would apply with a .eachFile loop, or if it's only good in vanilla "for" loops. That's from the documentation. S.O. is all over the place with answers, some saying "return", some saying "continue".
The divide seems to be "for" versus ".eachXXX" loops, with .eachXXX liking "return" best.
(I'll come back an Accept Solution once I try it out, if I don't get a more definitive answer. Thanks.)
GenJerDan 19-Oct-20 3:39am View    
And the XP will need to be on SP3, iirc.