Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

.c to text conversion

 
budsy remo
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , i want to open a .c file in a textarea in text format . How do i do that ?
 
Paul Clapham
Sheriff
Pie
Posts: 20750
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you mean by a "textarea". However, choosing one of the possibilities, the JTextComponent class has a "read" method which accepts a Reader; you could pass it a FileReader which refers to your C file.
 
budsy remo
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks i will try that . Thank you man .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic