saving data text file to any folder created

Anthony B.
Baltimore, MD

Sep 20, 2012
6 Posts

0  |  0  

Re: saving data text file to any folder created

DirectoryCreate("C:\\ATEASY_ATOR\\data\\"+sSerialNumber)

How do i save  data text file to folder  sSerialNumber

Thank you

Solution Available
Paul T.
Maennedorf, Zurich

Sep 20, 2012
63 Posts

1  |  0  

Re: saving data text file to any folder created

Hi Anthony,

I'm not sure about what are you trying to do. Do you want to save a text file in the custom directory created with DirectoryCreate("C:\\ATEASY_ATOR\\data\\"+sSerialNumber)   ?

If so, you can use hFileHandle=FileCreate("C:\\ATEASY_ATOR\\data\\"+sSerialNumber+"\\FileName.txt") as it is or you can check the other parameters for the FileCreate function.

After FileCreate, you can write data to the file using FileWrite(...). Don't forget to close the file with FileClose(hFileHandle).

I hope this helps you.

Regards,

Paul T.

Paul T.
Maennedorf, Zurich

Sep 26, 2012
63 Posts

0  |  0  

Re: saving data text file to any folder created

Did this help you, Anthony?

Anthony B.
Baltimore, MD

Sep 26, 2012
6 Posts

0  |  0  

Re: saving data text file to any folder created

Thanks Paul
I figured it out .

Anthony B.
Baltimore, MD

Sep 26, 2012
6 Posts

0  |  0  

Re: saving data text file to any folder created

Thanks Paul
I figured it out .



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]