SPONSORS:






User Tag List

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)

    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)

    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
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 11:03 AM.

Copyright BetaSoft Inc.