Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!ucla-cs!elroy.jpl.nasa.gov!decwrl!shelby!portia!m_rhoten From: m_rhoten@portia.Stanford.EDU (matt rhoten) Newsgroups: comp.sys.mac.programmer Subject: Undeletable file Summary: weird program-created file won't go away... Keywords: pascal Message-ID: <9811@portia.Stanford.EDU> Date: 6 Mar 90 04:48:01 GMT Sender: matt rhoten Reply-To: m_rhoten@portia.Stanford.EDU (matt rhoten) Distribution: na Organization: Stanford University Lines: 22 Hi guys. I accidentally left a bug in a program I'm writing which didn't check to see whether a certain filename was defined before using it. The result was a file on my disk with an odd filename. It can't be renamed or moved - the Finder gives me 'File not found.' It can be thrown away. When I empty the trash, it goes away - only to reappear when the window it's in is closed and reopened. DiskTop 1.2 can't delete it - File not found. I tried using the File Manager (FSDelete?), having gotten the VRefNum for its volume and everything. It gave me a 'file not found.' So I'm pretty sure one of the characters is messing up the file in a pretty weird way. The filename is (ASCII) (0,25,102,12,101,115) (HEX) (0019660C6573). I think it might be the null or the linefeed. Can anyone figure out how to delete the puppy? I haven't tried the parameter-block routines because I don't know how to use them. It's not too critical - I'm about to backup by hard drive and partition it, so I'll have to reinitialize it anyway - but it seems this sort of thing shouldn't happen... thanks. -matt -- post no .signatures