Hello Master
Now i facing some issue
If i need to read the file from Folder.
How to write the in Navision to read the file.
Example: (my directory C:\Data )
I got 1 folder name as : File and Backup
Inside File folder consist of 3 file : 1.txt,2.txt,3.txt etc
How read the file name from this file one after another
After first file read then need to move it to Backup folder then continues another file.
Can the Navision write this kind of scenario ?
Hope the master here can help me.
Thank you
NAV
0
Comments
2) Look at RENAME or COPY command in the FILE section of C/AL Symbol menu
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Do you have sample code ?
Thanks
FileTest.CREATEINSTREAM(streamInTest);
WHILE NOT (streamInTest.EOS()) DO
BEGIN
Int:= streamInTest.READTEXT(Txt,100);
END;
FileTest.CLOSE();
Is it the above script just for read the text file right?
then how to read the file from the folder ?
Hope the master here can help me.
Thanks
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.