As shown in figure, fprintf function input Spaces and newlines symbol
But there is no space in the file and line breaks,,,,,,,,,,,,,,,,
Pure, without a clue to this kind of problem,,,,
CodePudding user response:
Reference:{
Fprintf (fp, "% s % d \ n", pMove - & gt; Data. The name, pMove - & gt; Data. Price);
PMove=pMove - & gt; next;
}