Re: a good ASCII Character map?
- Posted by "Lucius L. Hilley III" <Lucius_Hilley at BIGFOOT.COM> Jan 14, 2001
- 438 views
Now I understand. I didn't know why you wanted EOF. That won't work. This is my best explanation. 1. Create a small text file named test.txt 2. Now open the file set the value of the first byte to 26. 3. Close the file. (The file size will still be the same.) 4. Issue the following DOS command. "C:\>type test.txt>test2.txt" 5. Look at the size of the new file. (test2.txt) You should now be aware that the file was created in a non-binary method. The file size will be either 1 or 0 bytes. I don't know how you can shorten the length of a file without. making a copy of it excluding the unwanted portion. :( I would like to know the solution if you find it. Lucius L. Hilley III On Sun, 14 Jan 2001 03:28:42 -0800, LEVIATHAN <leviathan at USWEST.NET> wrote: >Heya! > >> seek to the end of the file, grab the length of the file (in bytes) and >> store the length value in the file >> >> i.e: {{{3}123},{{4}1234}} >> >> I want to help, so give me an example. > >Basically, I'm trying to stick an EOF before the EOF, aka "trimming >the file". Nothing I tried, including 26 and 255 and even -1 worked, >so I'm pretty stuck on trying to trim the file like that. Can you help? > >TIA, > >--"LEVIATHAN"