Win a copy of Design for the Mind this week in the Design 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: 20955
31
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