SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jun 2002
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    c file in ouput operations

    Hi,
    i am wrtiting the following code in my action block

    FILE *fp;
    fp=fopen("c:\\mydat.dat","r");
    if(fp==NULL) {
    lr_message("Could not open file %s","mydat.dat");
    }
    else {
    lr_message("The file is open in the read mode");
    }

    its is giving me an erro as
    Undifined identifier FILE
    Undefined identifier *fp

    Cud u please help in resolving this.

    thanks in advance

  2. #2
    Senior Member
    Join Date
    Jun 2001
    Posts
    146
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: c file in ouput operations

    Replace FILE with long.

    This is an area in which LoadRunner C deviates from standard C, why I don't know.

    Before anyone says RTFM - the LR function reference in 7.5 defines fopen with FILE, and then gives long in the example. duh.

    ------------------

  3. #3
    Member
    Join Date
    Jun 2002
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: c file in ouput operations

    Thanks man ,
    its was a great help buddy .
    just tell me how did u get this in functional maual .
    I m using LR 7.02 and i couldnot find it in the functional reference manual.

  4. #4
    Senior Member
    Join Date
    Jun 2001
    Posts
    146
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: c file in ouput operations

    There's a new part to the function reference, added in version 7.5, which deals with standard C functions.

    ------------------

 

 

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.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 07:24 AM.

Copyright BetaSoft Inc.