ccc_in_texas
January 26th, 2004, 06:24 PM
Hi all,
I have a problem with a text file that i need to read in my code.
I need to read in the file and then write it back out with some changes to it.
When I try to open it with notepad, I get this:
"䅆〻㈱㈹〰㬴䍍㭏㌰伻䈻㕁主十䅓⁕††††††㬠†㠱㬹†㠱㬹㬵†㠠〹㬰†㌠㌳㬱㬤†〰㬰†堻※†〻〰㬰㬤†〰㬰†堻"
When I try to open it with textpad, everything looks fine and readable...
I think it has to do with the encoding of the file, but whatever I try, I can't seem to change the file so my code can read it and do the changes I want ....
How can i convert this file so my code can read it and it is readable in notepad?
I have a problem with a text file that i need to read in my code.
I need to read in the file and then write it back out with some changes to it.
When I try to open it with notepad, I get this:
"䅆〻㈱㈹〰㬴䍍㭏㌰伻䈻㕁主十䅓⁕††††††㬠†㠱㬹†㠱㬹㬵†㠠〹㬰†㌠㌳㬱㬤†〰㬰†堻※†〻〰㬰㬤†〰㬰†堻"
When I try to open it with textpad, everything looks fine and readable...
I think it has to do with the encoding of the file, but whatever I try, I can't seem to change the file so my code can read it and do the changes I want ....
How can i convert this file so my code can read it and it is readable in notepad?