Hello everyone,
I need help in "_server.writeFile()" function...
If I have a .txt file and I want to edit a line which already exists in the file Is there a way to do that ?
for example:
1.Banana
2.Apple
3.Tomatoes
I want to change the second line to something else It is possible?
Thank, ran.
help||Editing single line in txt file (on extension .as)
-
- Posts: 27
- Joined: 20 Jun 2016, 18:30
Re: help||Editing single line in txt file (on extension .as)
Hi,
you can do that by loading the text file in memory, change the line and saving the file again.
To change the content of a specific line you can use string manipulation functions.
Cheers
you can do that by loading the text file in memory, change the line and saving the file again.
To change the content of a specific line you can use string manipulation functions.
Cheers
Return to “Server Side Extension Development”
Who is online
Users browsing this forum: No registered users and 53 guests