File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes File handling... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "File handling..." Watch "File handling..." New topic

File handling...


Joined: Nov 18, 2005
Posts: 4
Hey ...

i need code for the following (Urgent)..can anyone help me out in this...

open a text document...
given a particular position..(Position given as concerned to the whole file)... take the position value from keyboard..
U hav to manipulate the value that is there..

also to do the same thing given particular position in particular line number...
Joe Ess

Joined: Oct 29, 2001
Posts: 9189

Welcome to the Javaranch, Sam.
First, we are a friendly bunch here, so we ask that you use your real name (first and last, seperated by a space). As our Naming Policy states, accounts with obviously fictitious names will be closed.
You can change your displayed name here.
Second, we consider every topic "urgent" but we're all volunteers here, so we ask that you Ease Up.
Last, a good place to start when learing how to work with files is the Java Tutorial chapter on IO. Have you looked at it?
[ November 18, 2005: Message edited by: Joe Ess ]

[How To Ask Questions On JavaRanch]
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
Originally posted by Sam:
i need code for the following

Let's see the code you already have and we'll go from there.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I agree. Here's the link:
subject: File handling...
jQuery in Action, 3rd edition