Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi everyone!please tell me how to read the .cs file and convert it into .txt file?
Posted

why? For all practical purposes, .cs file is a text file. Just rename the file extension and you are in business.
 
Share this answer
 
Comments
Roger Wright 4-Aug-10 1:26am    
Reason for my vote of 5
Exactly...
If your .cs file exist in other then root directory or in special folder like app_code, then you can read normally like reading a text by using streamreader.

or another simplest solution, just copy the .cs file in new location and change the extension from .cs to text as already mentioned by Yusuf
 
Share this answer
 
"How to read the .cs file?"
Read it normally. It is a text file.

"How to convert it into .txt file?"
Do nothing. It is already a text file.
 
Share this answer
 
Comments
Toli Cuturicu 4-Aug-10 9:21am    
Don't post comments in Telugu or other language but English. They will be speadily deleted.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900