java - Most efficient way to create a large file (> 1GB) -


i know efficient way create large dummy file in java. filesize should above 1gb. used unit test method accepts files <= 1gb.

create sparse file. is, open file, seek position above 1gb , write bytes.

relevant: create file given size in java


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -