File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 18541

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
Similar Threads
Searching a String for a sequence of characters
Finding the position in a File
JSP calling servlet
Encryption using java , decryption using c++
Need to restrict ctrl+c, ctrl+v, ctrl+x