Re: [Tutor] Reading escaped characters from a file

2006-10-14 Thread Kent Johnson
David Heiser wrote: > > I have code that uses variables to hold escaped characters like "\n" or > "\03". As long as the assignment is done within the code, like > self.crChar = "\n", there is no problem. But When I try to read the > same character string from a text file and assign it, the str

Re: [Tutor] Reading escaped characters from a file

2006-10-14 Thread wesley chun
> I have code that uses variables to hold escaped characters like "\n" or > "\03". As long as the assignment is done within the code, like self.crChar = > "\n", there is no problem. But When I try to read the same character string > from a text file and assign it, the string is seen as just a strin

Re: [Tutor] Reading escaped characters from a file

2006-10-14 Thread Luke Paireepinart
David Heiser wrote: > > I have code that uses variables to hold escaped characters like "\n" > or "\03". As long as the assignment is done within the code, like > self.crChar = "\n", there is no problem. But When I try to read the > same character string from a text file and assign it, the str

[Tutor] Reading escaped characters from a file

2006-10-14 Thread David Heiser
Title: Message   I have code that uses variables to hold escaped characters like "\n" or "\03". As long as the assignment is done within the code, like self.crChar = "\n", there is no problem. But When I try to read the same character string from a text file and assign it, the string is seen