Hey Guys,
I want to ask about how to delete a line in files?
thanks
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Hey Guys,
I want to ask about how to delete a line in files?
thanks
nrickinedi (November 24th, 2012)
Can anyone answer me please ?
nrickinedi (November 24th, 2012)
No one has responded because no one knows what to say to that question.
Try asking the question like you are talking to a group of people who can not see your screen and do not know what you are doing.
Because we can't and we don't...
Seriously the best answer I can give to that without being sarcastic is:
Highlight the line you wish to delete and press backspace or delete...
nrickinedi (November 24th, 2012)
I mean I want to save data in file then when the user want to delete the task he click on delete button and delete it so I want to know how to delete it from the file (ToDoList program) I save the task in 5 lines first line is the name 2- description 3- Time 4- Priority 5- Date so if I want to delete the whole task I search for the name and delete the 5 line after it so If any one can help be to code it I'll be thankful.
nrickinedi (November 24th, 2012)
What have you tried and where are you stuck?
nrickinedi (November 24th, 2012)
I stuck in for loop I don't know the limit for the for I mean for (int i=0;i<= ?? ;i++) and I use adapter.remove(list.get(i)); but it didn't work list is arrayList
nrickinedi (November 24th, 2012)