This is the answer given by one of the QTP member
Well  8 is used here for appaending to the existing file (used in case u
want to add to the existing file)
if your  objective is just to read use value 1 instead of 8
use  2 if u like to write


D i m   f s o ,   f
S e t   f s o = c r e a t e o b j e c t ( " s c r i p t i n g . f i l e s y
s t e m o b j e c t " )
s e t   f   =   f s o . o p e n t e x t f i l e ( l o g f i l e , 8 , T r u
e )
f . w r i t e l i n e   " t e s t "

On Mon, Feb 14, 2011 at 7:15 PM, shalini reddy <[email protected]>wrote:

> vishnu,
> i am very new to QTP.
> Just want to know why are we writing  *8 , T r u e *please explain...
>
>
>
> Regards
> Shalini
>
>
> On Mon, Feb 14, 2011 at 6:54 PM, Vishnu V Potti <[email protected]>wrote:
>
>> Hi Kalyani,
>>
>> Try this.
>>
>> D i m   f s o ,   f
>> S e t   f s o = c r e a t e o b j e c t ( " s c r i p t i n g . f i l e s
>> y s t e m o b j e c t " )
>> s e t   f   =   f s o . o p e n t e x t f i l e ( l o g f i l e , 8 , T r
>> u e )
>> f . w r i t e l i n e   " t e s t "
>>
>> This will create a filesystem object in second line.
>> In 3rd line it will create a text file with permission to append text.
>>
>> Hope this helps.
>>
>>
>> On Mon, Feb 14, 2011 at 1:34 PM, kalyani k <[email protected]>wrote:
>>
>>> how to open a text file in qtp using descriptive programming? Can anybody
>>> send me the answer.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>> group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/MercuryQTP?hl=en
>>
>>
>>
>>
>> --
>> REGARDS
>> VISHNU V POTTI
>>
>>  --
>> You received this message because you are subscribed to the Google
>> "QTP - HP Quick Test Professional - Automated Software Testing"
>> group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/MercuryQTP?hl=en
>>
>
>  --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to