I can't not find text file

sweetchinosweetchino Member Posts: 12
I'm trying to save text file to local computer using codeunit but I can't not find text file on computer

// File1 is File object
// OutStreamObj is OutStream object

File1.CREATE( 'C:\Output.txt');
File1.CREATEOUTSTREAM(OutStreamObj);

OutStreamObj.WRITETEXT ('hello');


File1.Close; // To end the writing and write out to the file.

Best Answer

Answers

  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    Write access to C:\ is usually disabled - this is how new out-of-th-box PCs (since Windows Vista or 7 release) and servers come configured. Just saying.
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • sweetchinosweetchino Member Posts: 12
    Thanks guys. I found it on server.
Sign In or Register to comment.