Think of something that you wish Authorware could do but it doesn't?  Let the our good friends at Macromedia know via the wishlist.

Please let us know if you find any of the materials on this site inappropriate or offensive. Please include the url and why the material should be reviewed.

Comments and questions about the site are also welcome. Please no Authorware questions, use the AWARE list.


B5019 - How do I delete the last line of an external text file?

by - Joseph Ganci

I need to delete the last line of an external file. I searched the archives…When I try to use RemoveLine, I get an error message that asks me where RemoveLine() function is. Any ideas?

This will work:

fn := "c:\\mytextfile.txt"
file := ReadExtFile(fn)
WriteExtFile(fn, DeleteLine(file, LineCount(file)))

Have fun!

There are 0 reviews
Add your review