Saving Data Text File to Any Folder Created
Anthony B.
Baltimore, MD

Sep 20, 2012
6 Posts

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.
Bacau, Romania

Sep 20, 2012
41 Posts

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.
Bacau, Romania

Sep 26, 2012
41 Posts

Re: saving data text file to any folder created

Did this help you, Anthony?

Anthony B.
Baltimore, MD

Sep 26, 2012
6 Posts

Re: saving data text file to any folder created

Thanks Paul
I figured it out .

Anthony B.
Baltimore, MD

Sep 26, 2012
6 Posts

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]