menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Assume that the customer file references a file object, and the file was opened using the 'w' mode specifier. how would you write the string 'mary smith' to the file?
asked
Jul 12, 2018
38.7k
views
0
votes
Assume that the customer file references a file object, and the file was opened using the 'w' mode specifier. how would you write the string 'mary smith' to the file?
Computers and Technology
high-school
Santa Claus
asked
by
Santa Claus
8.4k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
3
votes
Here's an example using the safe fopen:
FILE* customer = NULL;
fopen_s(&customer, "test.txt", "w");
char* msg = "mary smith";
fwrite(msg, sizeof(char), strlen(msg), customer);
fclose(customer);
Da Rod
answered
Jul 17, 2018
by
Da Rod
8.1k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Jan 18, 2018
35.2k
views
When a file has been opened using the ‘r’ mode specifier, which method will return the file’s contents as a string? + python?
Bendystraw
asked
Jan 18, 2018
by
Bendystraw
7.7k
points
Computers and Technology
college
1
answer
5
votes
35.2k
views
asked
Jun 22, 2018
13.4k
views
When a file has been opened using the 'r' mode specifier, which method will return the file's contents as a string??
Arku
asked
Jun 22, 2018
by
Arku
8.6k
points
Computers and Technology
high-school
1
answer
4
votes
13.4k
views
asked
Nov 6, 2024
212k
views
Assume the following declaration exists in a program: String name = "James"; Which format specifier should be inserted in the statement below to display the value of name in a field that is 20 spaces wide?
Navra
asked
Nov 6, 2024
by
Navra
8.4k
points
Computers and Technology
high-school
1
answer
5
votes
212k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org