||Need to read or write files that are larger than the C/AL file variables' 2 GB limit?
The codeunit in this download shows you how, using the Microsoft Scripting Run-Time. Don't forget to change the file path in the OnRun trigger! :-)
P.S.: If your code is running on the service tier, I would definitely consider using .NET objects instead, but for the Classic Client and NAS, the Scripting Run-Time is indispensable!