SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Apr 2001
    Location
    Montreal, CA
    Posts
    74
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    SYS_FileSetPointer problem, help...

    Hi All,
    I am trying to update txt file, having trouble...
    I have opened file in FM_UPDATE mode..
    1) int iCurrentLine=SYS_FileSetPointer (PRDFileHandle, -1, FP_RELATIVE)
    2)iCurrentLine=SYS_FileSetPointer (PRDFileHandle, 57)
    ..On exectuion I am getting invalid file handle...I don't have problem with reading lines. I didn't try writing lines into this file yet..

    Thank you all for the help,
    Murali
    Intuit
    _ _ ___________ _ _
    Murali K Parepalli

  2. #2
    Points for Confirmed Friends
    Guest

    Re: SYS_FileSetPointer problem, help...

    I am not sure this is the case with you OR not. But, if you open file using FileOpen () and are trying to call SYS_FileSetPointer (), it won't work (You will get INVALID HANDLE error). The same may be true if you open file using SYS_FileOpen () and use FileSetPointer () to set the position.

    The following code works perfect in case you want to use...

    The above code returns 13 & 14 as result.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 06:44 AM.

Copyright BetaSoft Inc.