delete or replace them, but my txt file is setup like this
number,number,number,"the user types something here"
but at the part that the user types something it might delete the commas inside, and I have to delete the quotes so I was thinking something like this
Code:
while(fgets(buff1,50, pfile))
{
while(get one character from the buff1 and put it into a variable called character){
if(num1 != 3){
if(character == ','){
printf(" ")
num1 = num1 + 1
}
else{
printf("%s",character)
}
}
else{
printf("%s",character)
}
}
}
This doesn't take care of the quotes (because they might enter quotes) so can you help me with that and the parts I don't know the functions for