+ 2
What do you mean by a file? Whether it's a text file or any other?In what extension "fopen(filename,w)" will create a file?
File
8 Respuestas
+ 8
Depends on what type of you are creating
For just reading n writing purpose extension will be. txt
If c .c
If html .html
If you want to open it in ms-word ".docx"
If you want to open it in ms excel ".xlsx"
hope you got it now ☺
+ 4
I think file is a way for permanent storage in your computer.File can be two types normally,text file & binary file.
Text files are the normal .txt file that can make in any simple text editor, the other one is the .bin files of computer.
And you need to put .txt extension I guess.
+ 4
When you use w:
Creates an empty file for writing. If a file with the same name already exists, its content is erased and the file is considered as a new empty file.
Also see this:
https://www.tutorialspoint.com/c_standard_library/c_function_fopen.htm
+ 2
We mainly use filename.txt but others are also possible imo
+ 1
Which language are you asking for?
+ 1
C language
+ 1
But in what extension sir (.txt..?.)