need help
Hello, I forgot my C and I could use some help with a program I need. I need to read data from a file and write it to a second file after I have reversed the words. For example: Original: 132456789 132456 123 789456 Result: 987654321 654321 321 654987 I’ve used strrev. But I had difficulty separating a line that I read into words. I can’t use the strrev command on the line because then the order of the words would be different. Thanks in advance. Angel [email protected]
Hello, I forgot my C and I could use some help with a program I need. I need to read data from a file and write it to a second file after I have reversed the words. For example: Original: 132456789 132456 123 789456 Result: 987654321 654321 321 654987 I’ve used strrev. But I had difficulty separating a line that I read into words. I can’t use the strrev command on the line because then the order of the words would be different. Thanks in advance. Angel [email protected]