Jump to content

Help with writing files..


Recommended Posts

Posted

I am making my own chat log system, but there is a minor problem:

When I open the file using fileRead, it will start writting at pos 0 and it will overwrite any existing text, and I need it to start writing from the end, how can I do this?

Thanks

Posted
fileSetPos(fileElement, fileGetSize(fileElement))

I think ^ is what you are looking for. You should execute that line right after opening the file to write.

Yes!! It was this, thank you!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...