tailieunhanh - Professional ASP.NET 3.5 in C# and Visual Basic Part 122

Professional in C# and Visual Basic Part 122. Building on the revolutionary release, adds several key new developer features including AJAX, LINQ, and a new CSS designer in Visual Web Developer 2008. The dramatic reduction in code that developers realized from the more than 50 new server controls in now allows developers the time to make their applications more interactive with AJAX, to work with data in their preferred language with LINQ, and to build visually attractive and consistent standards-based sites with CSS. . | Chapter 25 File I O and Streams Filestream resources as Close does it can be very useful if you are going to perform multiple write operations and do not want to release and then reacquire the resources for each write operation. As you can see so far reading and writing to files is really quite easy. The good thing is that as mentioned earlier because .NET uses the same basic stream model for a variety of data stores you can use these same techniques for reading and writing to any of the stream derived classes. Listing 25-15 shows how you can use the same basic code to write to a Memorystream and Listing 25-16 demonstrates reading a Telnet server response using the Networkstream. Listing 25-15 Writing to a MemoryStream VB Dim data As Byte This is a string Dim ms As New data 0 C byte data This is a string ms new data 0 Listing 25-16 Reading from a NetworkStream VB Dim client As New Note You can find a large list of Telnet accessible BBs systems at http telnet The WCs Online BBs http Dim addr As Dim endpoint As New addr 23 endpoint Dim ns As If Then Dim data As Byte data 0 Dim response As string data End If C client new Note You can find a large list of Telnet accessible BBs systems at http telnet The WCs Online BBs http addr endpoint new .

TỪ KHÓA LIÊN QUAN