@@ -0,0 +1,1647 @@
+%0Aimport java.net.*;%0Aimport java.io.*;%0A%0A/*%0ASample quoey url%0A%0Ahttp://www.netfonds.no/quotes/tradedump.php?date=20150424&paper=MON.N&csv_format=csv%0A%0Ahttp://www.netfonds.no/quotes/posdump.php?date=20150424&paper=MON.N&csv_format=csv%0A%0AquoteGE.N0423.csv%0A%0AtradeGE.N0423.csv%0A%0AUsage:%0A%0Ajava TickDL %5Bquote or trade%5D YYYY MMDD sym%0A%0Aexample: java TickDL quote 2015 0501 C.N%0A%0A*/%0A%0Apublic class TickDL %7B%0A%0A        public static void main(String%5B%5D args) throws Exception %7B%0A%0A                if( args.length!=4 )%7B%0A                        System.out.println(%22Usage: java TickDL %5Bquote or trade%5D YYYY MMDD sym%22);%0A                        return;%0A                %7D%0A%0A                //Get the command line arguments.%0A                String tbl = args%5B0%5D;%0A                String year = args%5B1%5D;%0A                String dt = args%5B2%5D;%0A                String sym = args%5B3%5D;%0A%0A                String tradeurl = %22http://www.netfonds.no/quotes/tradedump.php?date=%22%0A                        + year + dt +  %22&paper=%22 + sym +%22&csv_format=csv%22;%0A%0A                String quoteurl = %22http://www.netfonds.no/quotes/posdump.php?date=%22%0A                        + year + dt +  %22&paper=%22 + sym +%22&csv_format=csv%22;%0A%0A                String queryUrl = %22quote%22.equals(tbl) ? quoteurl:tradeurl;%0A%0A                URL netfonds = new URL(queryUrl);%0A                URLConnection nf = netfonds.openConnection();%0A%0A                BufferedReader in = new BufferedReader(new InputStreamReader(nf.getInputStream()));%0A%0A                String inputLine;%0A                while ((inputLine = in.readLine()) != null)%0A                        System.out.println(inputLine);%0A                in.close();%0A        %7D%0A%0A%7D%0A

Create TickDL.java