This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark ".c to text conversion" Watch ".c to text conversion" New topic

.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

Joined: Oct 14, 2005
Posts: 19659

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:
subject: .c to text conversion
It's not a secret anymore!