Subj : Re: File object randomly thinks file is empty To : Digital Man From : Nightfox Date : Sat Jul 04 2009 12:24 pm Re: File object randomly thinks file is empty By: Digital Man to Nightfox on Fri Jul 03 2009 23:39:40 > > > for the script. The problem is that the File object sometimes thinks > > > file is empty (length property is 0), and other times it is able to re > > I don't know of any such problem. Are you checking the return value of > > File.open()? Is it possible that it's returning false sometimes and that' > > the length would be 0? If you could post a small example script which It looks like the problem was me. PEBCAC (Problem Exists Between Computer And Chair). :) One thing I'm doing with this script is having support for different "themes", which each theme in its own directory and having its own configuration file. I have my script choose a theme at random. Originally I had forgotten to pass an open mode to File.open(), and it looks like as it was opening files, it was stomping on them and wiping out all contents - so there were indeed files that were empty. I had meant to pass "r" as the open mode. I have re-created my configuration files, and it seems to work properly. So, nothing to see here, move along.. ;) Nightfox --- þ Synchronet þ Digital Distortion BBS .