Community Profile

photo

Kapil Dhanwani


Aktiv seit 2016

Followers: 0   Following: 0

Statistiken

Feeds

Anzeigen nach

Frage


Write a function called digit_counter that takes the name of a text file as input and returns the number of digits (i.e., any of the characters, 0-to-9) that the file contains. If there is a problem opening the file, the function returns -1
function[c]=digit_counter(filename) fid=fopen(filename,'rt'); if fid<0 error('error opening file %s', filename); ...

mehr als 7 Jahre vor | 2 Antworten | 0

2

Antworten