Write a program that reads a file, breaks each line into words, strips whitespace and punctuation from the words, and converts them to lowercase
please help me out .
thanks in advance
vipulasri.2007
0
Newbie Poster
Recommended Answers
Jump to PostHelp you do what exactly? Start your program that just opens a file then reads it one line at a time. Once you get that compiler without errors and working, you can do the rest of the assignment. Do the assignment one small step at a time and you will …
Jump to Postpaste this into your file manager to test
c:\TurboC++\Disk\TurboC3\sample.txtor use sameple.txt
and put it in same dir as your exe
Jump to PostYour program worked ok using VC++ 2012 Express. I just created a directory structure like the one in your program and copied a text file named sample.txt. That tells me your problem is either your compiler or the location of the file.
Move sample.txt to c:\ and see if your …
All 10 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
vipulasri.2007
0
Newbie Poster
Sokurenko
42
Junior Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
vipulasri.2007
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
vipulasri.2007
0
Newbie Poster
Sokurenko
42
Junior Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
vipulasri.2007
0
Newbie Poster
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.