read is an irregular verb, read - read - read. So it would be called readGroups.
However, it won't work like this, because the array will be empty on every call. Making it static will not work either, because it needs to be reset, too. Therefore, pass it as another parameter (by reference!) with this method.