CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of stream
C#
using System;
using System.IO;
 
class Program
{
    static void Main()
    {
    //
    // It will free resources on its own.
    //
January 26, 2012 @ 7:26am
21 Views
no comments
 
public String httpResponseAsString(InputStream is, String charset) throws IOException{
        if(is==null){
            return "";
        }
        
        StringBuffer out=new StringBuffer();
        String line ;
        try {
            BufferedReader reader=new BufferedReader(new InputStreamReader(is, charset));
            while ((line=reader.readLine())!=null) {
by x03570227   November 28, 2011 @ 12:16am
28 Views
no comments
 
C#
// Define a list by enclosing the item type in brackets [int]
// and initialize its value.
 
Scores : [int] = [ 92, 100, 85, 62, 81, 100 ];
 
// Option A
 
// require the stream type to be specified on a property
PassingScores : int*
{
by Dan Vanderboom   June 16, 2010 @ 1:07pm
235 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate