Re: delete bytes?
- Posted by Derek Parnell <ddparnell at bigpond.com> Mar 20, 2006
- 566 views
Salix wrote: > > Greg Haberek wrote: > > > > > I have a text file open and I want to write a few words after the 25th by= > > te and delete the rest. What should I do? > More tips and advices are welcome! ** Open the input file with "r". ** Create a new empty output file with "w". ** Copy the bytes you want from the input file to the output file. ** Add the 'suffix' stuff to the output file. ** Close both files. ** Delete or rename the input file. ** Rename the output file to the input file name. There is no built-in function to delete or rename files but you can use the system command to do these type of things. -- Derek Parnell Melbourne, Australia Skype name: derek.j.parnell