Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
readline
- Page 1
Re: ReadLine method
Programming
Software Development
14 Years Ago
by Momerath
ReadLine
gets one line from the file ReadAllLines reads all the lines and returns an array of strings. ReadToEnd reads the entire file returning it as one string.
ReadLine() won't stop the console from closing
Programming
Software Development
12 Years Ago
by Aaron_JY
…class TestClass1 { static void Main() { String UserInput = Console.
ReadLine
(); String PrevAnswer = null; switch (PrevAnswer) { case null: …quot;That's good to hear"); Console.
ReadLine
(); break; } case "bad": …
Re: ReadLine() in StreamReader
Programming
Software Development
16 Years Ago
by Narue
>while ((score = sr.
ReadLine
()) != null)
ReadLine
returns a string, not a double. There's no implicit conversion from string to double, so you have to make the conversion manually: [code=csharp] string line; while ( ( line = sr.
ReadLine
() ) != null ) { double score = double.Parse ( line ); //... } [/code]
Re: ReadLine Question, URGENT
Programming
Software Development
16 Years Ago
by manal
… [CODE]While loadf.Peek <> -1 Line = loadf.
ReadLine
() ... ... End While[/CODE] [QUOTE]Please just give me the…Peek <> -1 n = n + 1 Line = loadf.
ReadLine
() If n = 5 Then TextBox1.Text = Line End If End…
Re: ReadLine() won't stop the console from closing
Programming
Software Development
12 Years Ago
by tinstaafl
…break; } case "hello": { UserInput = Console.
ReadLine
(); switch (UserInput) { case "good"…
ReadLine() in StreamReader
Programming
Software Development
16 Years Ago
by silvergirl
… StreamReader("output.txt")) { double score; while ((score = sr.
ReadLine
()) != null) { score = score + score; ++count; averageScore =…' to 'double' " on sr.
ReadLine
code. What do I write and where do…
ReadLine Question, URGENT
Programming
Software Development
16 Years Ago
by lukechris
…, I have come to ask about "System.IO.StreamReader.
ReadLine
" I want it to read line 1, then 2….IO.StreamReader("c:/text.txt") textbox5.Text = loadf.
ReadLine
() [/ICODE] Thats really all i know, please help Thanks, Luke
tryin to use readline
Programming
Software Development
14 Years Ago
by neo_31591
readLine
() returns string type.... i have a file of usernames and …")); BufferedReader b=new BufferedReader(i1); String str; str=b.
readLine
(); for(int i=0;i<str.length;i++) if…
Re: Readline not functioning like read
Programming
Software Development
13 Years Ago
by jon.kiparsky
It gets characters line by line because that's what
readline
does. Look at the API for BufferedReader: [URL="http://…/javase/1,5.0/docs/api/java/io/BufferedReader.html#
readLine
%28%29"]BufferedReader…
Re: ReadLine() in StreamReader
Programming
Software Development
16 Years Ago
by silvergirl
…;output.txt")) { double score; string line; while ((line = sr.
ReadLine
()) != null) double score = double.Parse (line); { score = score + score; ++count…
Re: ReadLine() in StreamReader
Programming
Software Development
16 Years Ago
by JerryShaw
Whoops, you have even more problems, here is a corrected version. [code] string line; double score = 0; count = 0; while ((line = sr.
ReadLine
()) != null) { score += double.Parse (line); count++; } averageScore = (double)inValue / count; [/code]
Re: ReadLine method
Programming
Software Development
14 Years Ago
by jonsca
Make sure the textbox is set to multiline. To append your text to what is in the box, use the += operator. In your loop: (obviously read the line of text into a temporary if you're using .
ReadLine
() to drive the loop) [code] myTextBox.Text +=(myStreamReader.
ReadLine
()+"\r\n"); [/code] I didn't test that out, but that's the gist of it
Re: Readline not functioning like read
Programming
Software Development
13 Years Ago
by newbie14
… by character.I just send the same string for the
readline
it does not work the same where I must press….write("$PA\n"); w.flush(); while ((line = r.
readLine
()) != null) { // Print the content on the console System.out.println…
readline() on closed filehandle? I don't understand, it's open...
Programming
Software Development
14 Years Ago
by bio-grad
… I don't understand how to fix it. Help? "
readline
() on closed filehandle IN at transcribe.pl line 21."…
readLine() Method
Programming
Software Development
14 Years Ago
by sj5536
hi how i calculate number of space and tab from the string return by
readline
() method BufferedReader Class
Re: readLine() Method
Programming
Software Development
14 Years Ago
by Lourdupinto
… ("Enter a sentence or phrase: "); String str=buff.
readLine
(); int count = 0; int limit = str.length(); for(int i…
ReadLine method
Programming
Software Development
14 Years Ago
by Kath_Fish
… file = null; try { file = new StreamReader(filePath); while ((line= file.
ReadLine
())!= null) { textBox7.Text = line…
Re: ReadLine method
Programming
Software Development
14 Years Ago
by Kath_Fish
what is different between
readLine
, readAllLine and readToEnd...?
ReadLine method
Programming
Software Development
14 Years Ago
by Kath_Fish
hey...i got a problem.. Now i do the read text file line by line. I am using the
ReadLine
Function to do that. But It cannot show all the output. It always show the last one content in text file. It cannot show the previous content in text file to the text box. Who can help me to solve it...? Thank you so much...
Re: ReadLine method
Programming
Software Development
14 Years Ago
by Chellam2
StreamReader.
ReadLine
() reads one line at a time. If you want multiple lines you will have to loop through the data. Or, depending on the program, you may be able to do the event multiple times reading one line of text each time.
Readline not functioning like read
Programming
Software Development
13 Years Ago
by newbie14
… prints it well chracter by chracter. [CODE]while ((line = r.
readLine
()) != null) { // Print the content on the console System.out.println…
Re: Readline not functioning like read
Programming
Software Development
13 Years Ago
by jon.kiparsky
Yes, that's what
readLine
is. It reads a line, a line being marked by …
Re: Readline not functioning like read
Programming
Software Development
13 Years Ago
by newbie14
Dear Jon, Any comments why is the
readline
not able to function as the read? Thank you.
Re: Readline not functioning like read
Programming
Software Development
13 Years Ago
by newbie14
Dear Jon, I notice my line ends with -1 so how to cater that for
readline
just as I do in read it works fine. Thank you.
Re: tryin to use readline
Programming
Software Development
14 Years Ago
by neo_31591
hey thanks for the suggestion i did that.... when i use String str[]=b.
readLine
(); it gives incompatible type error how to go about it
Re: tryin to use readline
Programming
Software Development
14 Years Ago
by JamesCherrill
Time to engage brain.
readline
returns a String. An array of Strings isn't the …
Re: tryin to use readline
Programming
Software Development
14 Years Ago
by neo_31591
hmmmm...an how do i read the lines one at a time from my file and put them into an array.....???? i dont want to use the split function.....and
readline
returns a string,not an array of strings....am loosin it..please help me out! ! !
Re: tryin to use readline
Programming
Software Development
14 Years Ago
by neo_31591
…;)); BufferedReader b=new BufferedReader(i1); String str; while((str=b.
readLine
())!=null) { //System.out.println(str); //bool=true; if(str.equals…
Cant readline in text file.... URGENT help~
Programming
Software Development
19 Years Ago
by grazcy
….
ReadLine
() game.counter1.Text = strmw.
ReadLine
() game.Pname2.Text = strmw.
ReadLine
() game.PP2.Text = strmw.
ReadLine
() game.counter2.Text = strmw.
ReadLine
() game.PTurn.Text = strmw.
ReadLine
…
Re: Cant readline in text file.... URGENT help~
Programming
Software Development
16 Years Ago
by DaKasper
….
ReadLine
() game.counter1.Text = strmw.
ReadLine
() game.Pname2.Text = strmw.
ReadLine
() game.PP2.Text = strmw.
ReadLine
() game.counter2.Text = strmw.
ReadLine
() game.PTurn.Text = strmw.
ReadLine
…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC