reading textfile into array in C file