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.
Post History
How to clear the contents of a file using C?
#4: Post edited
Regarding the clearing of contents in .dat/.txt file.
- How to clear the contents of a file?
How to clear the contents of a .dat/.txt file using C programming?I know about the system `cls` and `clrscr` commands, but those are only for clearing the screen or console window of commands and any output generated by them.Thanks.
- How to clear the contents of a file using C?
#3: Post edited
Anyone knows how to clear contents of a .dat/.txt file using C programming? Like I know stuff like system("cls") and clrscr() but like that is only for clearing the screen or console window of commands and any output generated by them.- Thanks.
- How to clear the contents of a .dat/.txt file using C programming?
- I know about the system `cls` and `clrscr` commands, but those are only for clearing the screen or console window of commands and any output generated by them.
- Thanks.
#2: Post edited
Regarding the clearing of contents in .dat/.txt file.
Anyone knows how to clear contents of a .dat/.txt file using C programming? Like I know stuff like system("cls") and clrscr() but like that is only for clearing the screen or console window of commands and any output generated by them. Thanks.
#1: Initial revision
Regarding the clearing of contents in .dat/.txt file.
Anyone knows how to clear contents of a .dat/.txt file using C programming? Like I know stuff like system("cls") and clrscr() but like that is only for clearing the screen or console window of commands and any output generated by them. Thanks.