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? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
+ 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

21st Apr 2019, 5:11 AM
Diliban B
Diliban B - avatar
7 Respostas
+ 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 ‚ėļ
21st Apr 2019, 6:51 AM
Hemanth
Hemanth - avatar
+ 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.
21st Apr 2019, 5:34 AM
Nuzhat Tasnim
Nuzhat Tasnim - avatar
+ 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
21st Apr 2019, 5:38 AM
Kartik
Kartik - avatar
+ 2
We mainly use filename.txt but others are also possible imo
21st Apr 2019, 5:42 AM
Kartik
Kartik - avatar
+ 1
Which language are you asking for?
21st Apr 2019, 5:19 AM
Kartik
Kartik - avatar
+ 1
C language
21st Apr 2019, 5:32 AM
Diliban B
Diliban B - avatar
+ 1
But in what extension sir (.txt..?.)
21st Apr 2019, 5:39 AM
Diliban B
Diliban B - avatar