Computer Science Canada

need some more help

Author:  JR [ 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?

Author:  Dan [ Tue Feb 10, 2004 5:42 pm ]
Post 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

Author:  shorthair [ Wed Feb 11, 2004 5:17 pm ]
Post subject: 

well heres an excuse to spam , il do it for 5 whole canadian dollars over paypal, Twisted Evil Twisted Evil , 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 =-=-=-


: