Results 1 to 9 of 9
Thread: how to remove characters
- 01-17-2012, 02:13 AM #1
Senior Member
- Join Date
- Feb 2011
- Posts
- 235
- Rep Power
- 3
- 01-17-2012, 06:05 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: how to remove characters
What happen when you run this code segment, error?
- 01-17-2012, 06:57 AM #3
Re: how to remove characters
Are you sure you want to concatenate the character to task and assign the result to taskLine?taskLine = task + task.charAt(i);
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 01-17-2012, 03:57 PM #4
Senior Member
- Join Date
- Feb 2011
- Posts
- 235
- Rep Power
- 3
- 01-17-2012, 03:58 PM #5
Senior Member
- Join Date
- Feb 2011
- Posts
- 235
- Rep Power
- 3
- 01-17-2012, 04:00 PM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: how to remove characters
Yes, but what does it do?
Shows us an input and an output from the code...and possibly answer Darryl's question as well.
- 01-17-2012, 06:28 PM #7
Senior Member
- Join Date
- Feb 2011
- Posts
- 235
- Rep Power
- 3
Re: how to remove characters
input: Task1Ødo this!Ø1§ (from a txt file) output: Task1Ødo this!Ø1§
and i think i answered it, didn't i? i am just putting the current phrase together, with the new character. that is all that that should be really doing.
- 01-17-2012, 08:26 PM #8
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: how to remove characters
Sorry, we'd cross-posted.
I must have had the window open for a couple of minutes.
But I suspect that was what Darryl was suggesting...except your last character is not being double up, which is what I would expect.
- 01-18-2012, 02:59 AM #9
Senior Member
- Join Date
- Feb 2011
- Posts
- 235
- Rep Power
- 3
Re: how to remove characters
here is what i would like to do, ultimately:
read this text file:
Task1Ødo this!Ø1§
where Ø shows up, enter the following text on a new line. where § occurs, break out two new lines for the next task. also, let's say they want to edit task 5. what would be the best way to organize this file, and go directly to that line, and start reading it?
i would really appreciate any coding help, because i keep on fumbling and i think i am making it harder than it really is :pLast edited by droidus; 01-18-2012 at 03:03 AM.
Similar Threads
-
ArrayList and remove()
By Pragz in forum New To JavaReplies: 1Last Post: 04-21-2011, 01:42 AM -
Remove .0
By maple_leafs182 in forum New To JavaReplies: 4Last Post: 01-28-2011, 02:47 AM -
Remove control characters in txt file
By trivektor in forum New To JavaReplies: 7Last Post: 09-23-2008, 04:22 PM -
How to remove Control Characters from an input file?
By renjan in forum Advanced JavaReplies: 0Last Post: 08-01-2007, 03:33 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks