with char array of the file