> Ok, I traced the problem to line 1916.00 in XXXWRKHTML > C eval rc = link(StmfTemp:Stmf) > > Apparently the QNTC file system doesn't support the usage of link in > this fashion.
Correct, this is a very Unix-y thing to do. Windows does not support multiple hard-links to a file, and doesn't support symlinks at all. I wonder why they didn't just create it under the correct name? Or, if the temporary filename thing is really important, why not create it with the temp name and then rename it? Why the complicated linking/unlinking code? I could see using that technique if the file was to remain open, but unlinked, for a long period of time. But that's not the case here! The file is opened, written, and closed all in the same subprocedure. I also don't understand why it uses a loop with stat() and unlink() to delete the file. It doesn't change the name between calls to unlink(), so what good does that do? Try to delete the same file over and over again in a loop? If the user doesn't have access to delete the file, it'd be an endless loop! If he does, it's unlinked on the first call. Why do you need a loop? The open() logic is more complicated than it needs to be as well. Then it copies the entire buffer from one memory buffer to another just to convert x'15' to x'0d25'. Seems like a waste of memory, and a possible slowdown in the procedure. Why not scan for each x'15', and then write everything prior to it to the file, followed by a x'0d25'? Why copy the whole thing to a separate buffer first? If this were open source, I'd re-write it the way I'd like to see it work, and submit that code to the project. Too bad. ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/wbFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Easy400Group/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
