OK, time to have a laugh. I'm a first year digital forensics student and part of my course deals with C (ANSI C) programming. I have been given an exercise whereby I have to write a C program that will open a file, read it and either find and delete or find and replace characters (I.e- wherever I find a lowercase at the start of a sentence it should be made uppercase ( ^ 0x20 maybe??), and any instance where 'i' is on it's own it should also be made uppercase. The text file contains lots of characters such as & etc in the middle of words and needs punctuating('.' periods) etc. I thought about using an array...but I don't know how to use them that well. What I got so far is -:
This only reads the first character of the file and won't read past it or correct anything...any help would be greatly appreciated.
void main (void)
if (input1==' ' && input2=='i' && input3==' ')
input1 = input2 ^ 0x20;
while (input1,input2,input3 !=EOF);
(I have attached the file with the text in)
Thanks to anyone who can help