changing textfile with VBA

T

Tobias

Hallo,

how can I delete the first line from a textfile by vba, or how can i
delete a special string from a textfile by vba.

Greetings and thanks

Tobias Wolff
 
K

Karl E. Peterson

Tobias said:
how can I delete the first line from a textfile by vba, or how can i
delete a special string from a textfile by vba.

You can't, really. Not with _any_ language.

The only way to delete content from a file, text or otherwise, is to:

* read the file
* write the desired content back

That second step is generally to a new file. Once you have a good reproduction,
minus the unwanted bits, you can delete the original and rename the new.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top