How I get 100 hz frequency in arduino mega 2560

Most probably the data file is the bottleneck. Keep it open for 100 records and try again.