Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: FILE.SetPosition(pos)  (Read 2272 times)

0 Members and 1 Guest are viewing this topic.

pakhpakh64

  • Lurker
  • *
  • Karma: -1
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • View Profile
FILE.SetPosition(pos)
« on: March 06, 2013, 12:32:30 PM »

hi every body
I have problem with FILE.SetPosition(pos) function. I have something like this:
Code: [Select]
if(TS_FILE.OpenAsText(3))
if(TS_FILE.SetPosition(pos))
TS_FILE.WriteLine(ToString(Some_Number));

but when I run this code, the number I want to write is written at the end of file, like SetPosition function hasn't done a thing!
I know OpenAsText(3) opens the file for appending, could this be the problem?
I mean because I have opened the file in appending mode, I can't set read/write position before the end of file.

thanks in advance for your help.
Logged
 

Page created in 0.034 seconds with 20 queries.