On 7/3/2009 8:55 PM, Nightfox wrote:ã> Hi all. I'm working on a JavaScript script for Synchronet - a logon matrix - ã> and I've run into a weird issue with the File class.ã> ã> In my script, I want to open and read a configuration file that has options ã> for the script. The problem is that the File object sometimes thinks the ã> file is empty (length property is 0), and other times it is able to read the ã> file without any problems. I can observe this just by running the script ã> several times in a row.ããAre you opening the file with shared read-only? also, are you closing your ãhandle to the file when done, or otherwise encapsulating the file access into ãa separate method/function, so the variable falls out of scope?ãã> When I create the File object, the filename that will get passed to it is ã> something along the lines of this:ã> D:\BBS\sbbs\mods\../xtrn/DigDist\DDLoginMatrixThemes/kd-snake/DDMatrixTheã> me.cfgã> ã> Is there a known bug related to what I'm describing? Might I simply be ã> passing too long of a path to the File object?ããI couldn't answer this, I can only suggest to be certain you are safely ãaccessing the file with shared read. I can't offer more help than this ãwithout knowing more about how your configuration structure is read.ãã-- ãMichael J. Ryan -
http://tracker1.info/ãã... FRA #255: A wife is a luxury ... a smart accountant is a necessity.ãã---ã þ Synchronet þ Roughneck BBS -
telnet://roughneckbbs.com - www.roughneckbbs.comã