Example
#{example}"); ipb.editor_values.get('templates')['togglesource'] = new Template(""); ipb.editor_values.get('templates')['toolbar'] = new Template(""); ipb.editor_values.get('templates')['button'] = new Template("
Emoticons
"); // Add smilies into the mix ipb.editor_values.set( 'show_emoticon_link', false ); ipb.editor_values.set( 'bbcodes', $H({"snapback":{"id":"1","title":"Post Snap Back","desc":"This tag displays a little linked image which links back to a post - used when quoting posts from the board. Opens in same window by default.","tag":"snapback","useoption":"0","example":"[snapback]100[/snapback]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"topic":{"id":"5","title":"Topic Link","desc":"This tag provides an easy way to link to a topic","tag":"topic","useoption":"1","example":"[topic=1]Click me![/topic]","switch_option":"0","menu_option_text":"Enter the topic ID","menu_content_text":"Enter the title for this link","single_tag":"0","optional_option":"0","image":""},"post":{"id":"6","title":"Post Link","desc":"This tag provides an easy way to link to a post.","tag":"post","useoption":"1","example":"[post=1]Click me![/post]","switch_option":"0","menu_option_text":"Enter the Post ID","menu_content_text":"Enter the title for this link","single_tag":"0","optional_option":"0","image":""},"spoiler":{"id":"7","title":"Spoiler","desc":"Spoiler tag","tag":"spoiler","useoption":"0","example":"[spoiler]Some hidden text[/spoiler]","switch_option":"0","menu_option_text":"","menu_content_text":"Enter the text to be masked","single_tag":"0","optional_option":"0","image":""},"acronym":{"id":"8","title":"Acronym","desc":"Allows you to make an acronym that will display a description when moused over","tag":"acronym","useoption":"1","example":"[acronym='Laugh Out Loud']lol[/acronym]","switch_option":"0","menu_option_text":"Enter the description for this acronym (EG: Laugh Out Loud)","menu_content_text":"Enter the acronym (EG: lol)","single_tag":"0","optional_option":"0","image":""},"hr":{"id":"12","title":"Horizontal Rule","desc":"Adds a horizontal rule to separate text","tag":"hr","useoption":"0","example":"[hr]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"1","optional_option":"0","image":""},"php":{"id":"14","title":"PHP Code","desc":"Allows you to enter PHP code into a formatted/highlighted syntax box","tag":"php","useoption":"0","example":"[php]$variable = true;\n\nprint_r($variable);[/php]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"html":{"id":"15","title":"HTML Code","desc":"Allows you to enter formatted/syntax-highlighted HTML code","tag":"html","useoption":"0","example":"[html]\n \n[/html]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"sql":{"id":"16","title":"SQL Code","desc":"Allows you to enter formatted/syntax-highlighted SQL code","tag":"sql","useoption":"0","example":"[sql]SELECT p.*, t.* FROM posts p LEFT JOIN topics t ON t.tid=p.topic_id WHERE t.tid=7[/sql]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"xml":{"id":"17","title":"XML Code","desc":"Allows you to enter formatted/syntax-highlighted XML code","tag":"xml","useoption":"0","example":"[xml]6 Replies - 3 Views - Last Post: Today, 01:23 PM
#1
Reputation: 0
- Posts: 2
- Joined: Today, 12:40 PM
Posted Today, 12:47 PM
relatively easy question, just having a brain cramp. I have a 15 line .txt file I'm reading, and I'm trying to figure out how to only print out one specified line.
Replies To: print out specific line using BufferedReader/FileReader
#2
Reputation: 114
- Posts: 359
- Joined: 14-November 12
Re: print out specific line using BufferedReader/FileReader
Posted Today, 12:53 PM
Read each line into a String array of 15 indexes and print the specific index required.
#3
Reputation: 5221
- Posts: 8,223
- Joined: 19-March 11
Re: print out specific line using BufferedReader/FileReader
Posted Today, 01:08 PM
How are you recognizing the line? By position, or by content?
#4
Reputation: 520
- Posts: 1,600
- Joined: 29-July 11
Re: print out specific line using BufferedReader/FileReader
Posted Today, 01:10 PM
Yep. You're going to have to come up with a way to differentiate lines.
#5
Reputation: 2033
- Posts: 8,488
- Joined: 20-September 08
Re: print out specific line using BufferedReader/FileReader
Posted Today, 01:13 PM
#6
Reputation: 0
- Posts: 2
- Joined: Today, 12:40 PM
Re: print out specific line using BufferedReader/FileReader
Posted Today, 01:18 PM
Its by position.
#7
Reputation: 5221
- Posts: 8,223
- Joined: 19-March 11
Re: print out specific line using BufferedReader/FileReader
Posted Today, 01:23 PM
Assuming there's no monkey business, that's pretty simple. Open the file. Read lines until you get to the one you want. That's your line.
Page 1 of 1
apple earnings the glass castle jennifer hudson trial north korea threat brandon jacobs brandon jacobs brian dawkins
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.