rps32513@uxa.cso.uiuc.edu (Ronald P. Smith) (04/08/91)
I wrote a small think C program which filters out unwanted strings from a text file. It reads in a specified text file, filtering out unwanted strings, then writes it out to another file. In short, my problem stems from not checking for disk full errors in my FSWrite calls (it handles this big text file a section at a time). What happened is that I saw the program hang up, and pressed the reset button. So the program ended, without making the FSClose calls at the end. So my program created a text file, wrote a bunch of stuff to it, then quit. Somehow, this caused problems in the volume info. The file my program should have created is non-existant, but my hard drive is 10 megs fuller than it was before I ran my program. I got out every hard drive utility I could find, but couldn't solve my problem, any suggestions? Also, I was wondering if anyone out there knows of a simple program which takes a "to find" string, a "to replace" string, and goes through a file, replacing every occurence of one with the other. I found such a program, but it requires the typing of the strings, and one of the replacements I need to do is $20 $0D $0A -> $09. And I don't think it registers the CR, or the tab, and I know I can't get the LF to type. So if anyone has seen such a utility, I would appreciate it. --Ron Smith rps32513@uxa.cso.uiuc.edu . . ..