Here i want to make one file and write some data in this file with c program.
How can i write this data with new line character also. same as like this.
And in 3rd line i want to put one variable value instead if "BD_ADDR"
Can Any body Please Explain me the way how can i achieve this.
filename = "asound.conf"
file contents :
pcm.!bluetooth {
type bluetooth
device "BD_ADDR"
}
pcm.!default {
type plug
slave.pcm "bluetooth"
}
You’re going to need
fopenandfprintf, so correct usage will be: