SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Oct 2000
    Location
    Dublin, CA, USA
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Make result file in text format (.txt)

    Sir,
    I tried converting result .res file into text .txt file through above program, but It don't work, what should I assign to "sDesc" ?
    I think it should be .res file, right? Please help if you know where I'm doing mistake. shafi (ssyed@pixion.com)

    [-] main ()
    [ ] integer i
    [-] for (i=1; i<=1; i++)
    [ ] PrintTextFile ()
    [ ]
    [-] testcase PrintTextFile () appstate none
    [ ]
    [ ] string sDir = GetProgramDir()
    [ ] string sFile = GetProgramName()
    [ ]
    [ ]
    [ ] //string sDesc
    [ ] string sDesc = "{sDir}\{left(sFile,len(sFile) - 2)}.res"
    [ ] print ("step 1")
    [ ] PrintToTextLog (sDesc)
    [ ]
    [ ]
    [+] PrintToTextLog (string sDesc)
    [ ]
    [ ] list of string lsOutput
    [ ]
    [ ] string sDir = GetProgramDir()
    [ ] string sFile = GetProgramName()
    [ ] string sTextFile = "{sDir}\{left(sFile,len(sFile) - 2)}.txt"
    [ ]
    [ ] /* print to Silk .res file */
    [ ] Print("sDesc :",sDesc)
    [ ] Print ("sDir :",sDir)
    [ ] Print ("sFile :",sFile)
    [ ] Print ("sTextFile :",sTextFile)
    [ ]
    [ ]
    [ ] /* simultaneous print to text file */
    [-] do
    [ ]
    [-] if (SYS_FileExists(sTextFile))
    [ ]
    [ ] listread(lsOutput,sTextFile)
    [ ] listappend(lsOutput,sDesc)
    [ ] listwrite(lsOutput, sTextFile)
    [ ]
    [-] except
    [ ] LogError("FAIL - Error printing to text log: {ExceptData()}")
    [ ] print ("finished")
    [ ]
    [ ]
    [ ]
    [ ]


    ------------------
    Hyder




    ------------------
    HyderFatima

  2. #2
    Senior Member
    Join Date
    Jun 1999
    Location
    Fremont, CA, USA
    Posts
    355
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Make result file in text format (.txt)

    Check out the Save Results to Log File using a logClass file in the Download section for creating text based results files.


    ------------------
    David Genrich
    Blackhog
    932 Hamlin Court
    Sunnyvale, CA 94089
    dgenrich@blackhog.com

 

 

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 11.54%
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 09:04 AM.

Copyright BetaSoft Inc.