need some more help
Author |
Message |
JR
|
Posted: Tue Feb 10, 2004 5:27 pm Post subject: need some more help |
|
|
ok what i need to do is to write a program which will read the texts in "or and our.txt" a line at a time. Then output the line along with a line number. Afterwards, the program should reread the file changing all upper case in a word to a lower case.
how do i make that program? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: Tue Feb 10, 2004 5:42 pm Post subject: (No subject) |
|
|
this sounds a litte bit like some one asking for us to do there hw, but i give u some pointers any how.
1st u need to make a stream to the file, then make a loop that will keep on going till u have read every line in the file. then u just read a line at once using get stream, linevar : *. output this with the index of the loop to get the line nummber.
now to chage the uppercase and lowercase u will need to use Str.Lower (s : string) : string . it should chage the string to all lowercase.
good luck |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
![](images/spacer.gif) |
shorthair
![](http://www.members.shaw.ca/rfolz/domo-kun.jpg)
|
Posted: Wed Feb 11, 2004 5:17 pm Post subject: (No subject) |
|
|
well heres an excuse to spam , il do it for 5 whole canadian dollars over paypal, , hacker dan has lead you in the right direction , but im sure you compsci teacher is able to help you jsut as well as we can ......... if not then make sure you look around the site first , its amazing what you can find , also if you dont find anyhing , make sure you make your topic name appropriate , we know that you need help , because for starters your posting in the help forum which jsut gives it away , so jsut to give you some poiners ,,
Good Luck ,
-=-=-= Shorthair =-=-=- |
|
|
|
|
![](images/spacer.gif) |
|
|