Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes .c to text conversion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark ".c to text conversion" Watch ".c to text conversion" New topic
Author

.c to text conversion

budsy remo
Ranch Hand

Joined: Sep 20, 2008
Posts: 103
Hi , i want to open a .c file in a textarea in text format . How do i do that ?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18987
    
    8

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

Joined: Sep 20, 2008
Posts: 103
Thanks i will try that . Thank you man .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .c to text conversion