Re: EDB Question
- Posted by jimcbrown (admin) Nov 30, 2015
- 1216 views
tbohon said...
Trying to count and display number of records in a simple EDB file. Pretty sure I have the logic correct below but when it prints it shows a graphics character rather than a number so I'm missing something ... and it's driving me nuts!
Any help you can provide is most appreciated.
puts(f, "\n\nRecord count: " & rcount & "\n\n")
Change that one line to this:
printf(f, "\n\nRecord count: %d\n\n", rcount)
There are other solutions as well, like
puts(f, "\n\nRecord count: " & sprint(rcount) & "\n\n")
Or using the writef method.