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.

Back

1022 - How can I delete the last line of an external file?

by - Joseph Ganci


I need to delete the last line of an external file. I searched the archives...Bruce Van Horn said to use RemoveLine to do it. But 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
Back