Results 1 to 9 of 9
Thread: Searching text in file
- 12-11-2012, 02:24 PM #1
Member
- Join Date
- Dec 2012
- Posts
- 16
- Rep Power
- 0
Searching text in file
Hi!
I have another problem.
I must search text(example: "color" and "border-color") and import and edit text after this.
Example:
this:
to this:XML Code:font: Ariel; color: #ffff00; border: 1px; border-color: #ffff00;
Greetings,XML Code:font: Ariel; color: #00ffff; border: 1px; border-color: #00ffff;
Rafał
PS: Sorry for my bad english.
- 12-11-2012, 02:46 PM #2
Re: Searching text in file
Your English is fine, but you didn't actually ask a question.
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 12-11-2012, 04:12 PM #3
Re: Searching text in file
Moved from Advanced Java.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 12-11-2012, 07:58 PM #4
Member
- Join Date
- Dec 2012
- Posts
- 16
- Rep Power
- 0
Re: Searching text in file
@KevinWorkman, my question:
Could you tell me, how can i make it what is in my example?
- 12-11-2012, 08:02 PM #5
Re: Searching text in file
Which part is giving you trouble? Reading in a file? Searching a String? Replacing a String? Something else? What have you tried? What do you have so far? Where exactly are you stuck?
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 12-11-2012, 08:18 PM #6
Member
- Join Date
- Dec 2012
- Posts
- 16
- Rep Power
- 0
Re: Searching text in file
I'm not started yet.
My question is: What java library offers methods that will I need.
I will view the documentation and should I make this.
- 12-11-2012, 08:26 PM #7
Re: Searching text in file
It really depends on what you're asking about, specifically. You might want to look at the String API, or the Java IO tutorials, or a Scanner, or even Swing tutorials if you require a gui. But I'm just guessing since I don't know what your actual issue is.
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 12-11-2012, 08:39 PM #8
Member
- Join Date
- Dec 2012
- Posts
- 16
- Rep Power
- 0
Re: Searching text in file
May unnecessarily I started this topic so early. I will search through the library and see what I want to ask :P
- 12-12-2012, 10:23 AM #9
Member
- Join Date
- Dec 2012
- Posts
- 16
- Rep Power
- 0
Re: Searching text in file
I use code:
And program return in console:Java Code:File css = new File(cssdirectory+incss); Scanner skaner = new Scanner(css).useDelimiter(".*:\\s*#w*"); System.out.println(skaner.next());
instead/*!
* Copyright(c) etc...
*/
mask {
I wrong understand this commands?cdf;
Similar Threads
-
Searching Text Files Then Removing (My First Post!)
By technoreject in forum New To JavaReplies: 12Last Post: 06-29-2011, 06:51 AM -
Searching for keywords only instead of full-text search with Lucene
By DetRRG in forum LuceneReplies: 0Last Post: 02-25-2011, 08:13 AM -
searching a row using text fields
By bigj in forum New To JavaReplies: 1Last Post: 02-03-2010, 11:28 AM -
Searching a string from a text file using Swing Buttons
By pradeep1_mca@yahoo.com in forum AWT / SwingReplies: 2Last Post: 09-15-2008, 09:50 AM -
Searching a String from Text file using Swings .
By pradeep1_mca@yahoo.com in forum AWT / SwingReplies: 4Last Post: 09-09-2008, 05:29 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks