Languages :: Pascal :: conversion |
|||
| By: VB guy |
Date: 04/06/2003 00:00:00 |
Points: 300 | Status: Answered Quality : Excellent |
|
how can i load some charachters in a string and by pressing enter have them uppercased and stored in a file? and backwards |
|||
| By: VGR | Date: 04/06/2003 00:27:00 | Type : Answer |
|
| Program totor; Uses Crt; Var thestring : String; i : Byte; { Strings are limited to 255 characters, and 80 by default } thefile : Text; { textFile in Delphi } Begin write('enter a string an dpress ENTER'); readln(thestring); for i:=1 to Length(thestring) Do thestring=UpCase(thestring); writeln('result string = ',thestring); assign(thefile,'c:\result.txt'); rewrite(thefile); writeln(thefile,thestring); close(thefile); { CloseFile in Delphi } writeln('finished. Look into c:\results.txt'); End. |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








