PLEASE SCROLL TO THE BOTTOM CODE AS THIS PART IS SOLVED
i have just done some research and could not find much about the while loop used alongside the read function
im actually starting to think weather this can be done for my situation because i would like to open a file and read what is in the file up to a special character indicator.
i would like to then store what has been read, but the while loop would read each individual character and then pass it into storage, therefore overwriting the previous character.
is this method the most efficient way or is there a better solution? can it be done with a while loop or is it better for me to look in the string.h library? (doing this now)
kind regards all help is sincerely appreciated