Version 5 AnyCPU getting 2GB error

I'm a noob in C# and I'm getting this error running LincPad5 AnyCPU installed: "The file is too long. This operation is currently limited to supporting files less than 2 gigabytes in size."
Code is reading in a 4.7GB file. I've read somewhere that this is an x86 build issue only and the x64 build will allow for larger memory. "The AnyCPU builds default to X64 rather than X86." I'm running a 64-bit Windows 10 laptop.

byte[] nbytes = File.ReadAllBytes(largeFile);

Thanks,

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!