Hi? i'm new at programming and im trying to decipher a code. i'm trying to count how many times a char occurs in txt file
kiri88
0
Newbie Poster
Recommended Answers
Jump to PostFile = open('path\\to\\file', 'rb') Data = File.read() File.close() Data.count('aChar')
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.