Update main.c

Replace 0_RDWR (open function argument) to "r+" (fopen function argument)