Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for dumplingsā
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #285205 |
The problem I currently have now is that I'm not sure how to get user input and then strcmp() with the contents in the text file to delete that particular string containing the substring like what the user inputs. I also read on strstr() and gets() and implemented them but only manage to extract the ... (more) |
— | over 2 years ago |
Comment | Post #285303 |
But, once I found that line, how do I delete it? Is there some kind of built-in delete function to delete that particular line in the .txt file? I do see some coders creating a new temporary text file and store and rename it again but it seems quite hectic. (more) |
— | over 2 years ago |
Comment | Post #285298 |
This is my question, I was the one who said "Hey I have a question" & "Thank you". (more) |
— | over 2 years ago |
Comment | Post #285298 |
I just wanted the question to be displayed in a box.... (more) |
— | over 2 years ago |
Comment | Post #285205 |
But what if I for instance want to delete a specific content from the text file using c program? Is there some function that I can use as I do not want to clear ALL the contents, thanks!
(more) |
— | over 2 years ago |
Comment | Post #285136 |
Oh sorry, I actually did include the #include<stdio.h> its just that when I copied and pasted this code from my C compiler onto here, I missed it out. Maybe I'll try and see if there's any updates for my C compiler. I'm using code:blocks btw. I mean it should be fine right? (more) |
— | over 2 years ago |
Comment | Post #285100 |
Okay, apologies for any inconvenience caused. (more) |
— | over 2 years ago |