ASP Read Method Last Updated : 03 Mar, 2021 Comments Improve Suggest changes Like Article Like Report The ASP Read Method is used for reading a specified number of characters in a TextStream file. It is a predefined method of the TextStream Object that returns a result as a string. Syntax: TextStreamObject.Read(numchar) Parameter Value: numchar: Required attribute. It contains a numeric value that represents the number of characters that you want to read from the file. Example: Below code illustrates the ASP Read Method. ASP <% dim gfg,f,t,x set gfg=Server.CreateObject("Scripting.FileSystemObject") set f=gfg.CreateTextFile("e:\GFG.txt") f.write("Hello GeeksForGeeks") f.close set t=gfg.OpenTextFile("e:\GFG.txt",1,false) x=t.Read(10) t.close Response.Write("The First Ten characters are: " & x) %> Output: Hello Geeks Comment More infoAdvertise with us Next Article ASP ReadAll Method M manaschhabra2 Follow Improve Article Tags : Websites & Apps ASP-Methods ASP-Basics Similar Reads ASP ReadAll Method The ASP ReadAll Method is used to read all the contents from the Text file. It is a predefined method of the TextStream Object that returns a result string. Note: This method is not suitable for large files because it wastes memory resources. Syntax: TextStreamObject.ReadAll Example Code: Below co 1 min read ASP ReadLine Method The ASP ReadLine Method is used to read one line from a Text file. It does not include newline characters. It is a predefined method of the TextStream Object that returns a result string. Syntax: TextStreamObject.ReadLine Example: Below code illustrates the ASP ReadLine Method. ASP <% dim fs,f, 1 min read Java.io.BufferedReader Class in Java Reads text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines. The buffer size may be specified, or the default size may be used. The default is large enough for most purposes. In general, each read request made by a Reader 3 min read PushbackReader read() method in Java with Examples The read() method of PushbackReader Class in Java is used to read a single character from the stream. This method blocks the stream till: It has taken some input from the stream. Some IOException has occurred It has reached the end of the stream while reading. Syntax: public int read() Parameters: T 3 min read BufferedReader read() method in Java with Examples The read() method of BufferedReader class in Java is of two types: 1. The read() method of BufferedReader class in Java is used to read a single character from the given buffered reader. This read() method reads one character at a time from the buffered stream and return it as an integer value. Synt 3 min read Reader read() method in Java with Examples The read() method of Reader Class in Java is used to read a single character from the stream. This method blocks the stream till: It has taken some input from the stream. Some IOException has occurred It has reached the end of the stream while reading. This method is declared as abstract method. It 3 min read Like