Click here to Skip to main content
15,910,471 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Thought of the Day Pin
Eric Lynch4-Sep-18 5:54
Eric Lynch4-Sep-18 5:54 
GeneralRe: Thought of the Day Pin
Johnny J.4-Sep-18 5:56
professionalJohnny J.4-Sep-18 5:56 
GeneralRe: Thought of the Day Pin
Fueled By Decaff4-Sep-18 21:56
Fueled By Decaff4-Sep-18 21:56 
GeneralRe: Thought of the Day Pin
maze35-Sep-18 0:02
professionalmaze35-Sep-18 0:02 
GeneralRe: Thought of the Day Pin
jsc425-Sep-18 0:10
professionaljsc425-Sep-18 0:10 
GeneralRe: Thought of the Day Pin
maze35-Sep-18 4:45
professionalmaze35-Sep-18 4:45 
Generalhow long would it take to write a MB of code Pin
Munchies_Matt4-Sep-18 4:48
Munchies_Matt4-Sep-18 4:48 
GeneralRe: how long would it take to write a MB of code Pin
OriginalGriff4-Sep-18 4:59
mveOriginalGriff4-Sep-18 4:59 
Couple of minutes.
using System.Collections.Generic;
using System.IO;

namespace GeneralTesting
    {
    class MakeCode
        {
        public static void main()
            {
            List<string> lines = new List<string>();
            lines.Add("using System.Collections.Generic;");
            lines.Add("using System.IO;");
            lines.Add("");
            lines.Add("namespace GeneralTesting");
            lines.Add("    {");
            lines.Add("    class MakeCode");
            lines.Add("        {");
            lines.Add("        public static void main()");
            lines.Add("            {");
            for (int i = 0; i < 1000000; i++)
                {
                lines.Add("            Console.WriteLine(\"" + i.ToString() + "\");");
                }
            lines.Add("            File.WriteAllLines(@\"D:\\Temp\\MyCode.cs\", lines);");
            lines.Add("            }");
            lines.Add("        }");
            lines.Add("    }");

            File.WriteAllLines(@"D:\Temp\MyCode.cs", lines);
            }
        }
    }
Run that, problem solved.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

GeneralRe: how long would it take to write a MB of code Pin
lopatir4-Sep-18 5:22
lopatir4-Sep-18 5:22 
GeneralRe: how long would it take to write a MB of code Pin
  Forogar  4-Sep-18 5:24
professional  Forogar  4-Sep-18 5:24 
GeneralRe: how long would it take to write a MB of code Pin
OriginalGriff4-Sep-18 6:26
mveOriginalGriff4-Sep-18 6:26 
GeneralRe: how long would it take to write a MB of code Pin
Dirk Bahle4-Sep-18 9:53
Dirk Bahle4-Sep-18 9:53 
GeneralRe: how long would it take to write a MB of code Pin
Gary Wheeler4-Sep-18 6:15
Gary Wheeler4-Sep-18 6:15 
GeneralRe: how long would it take to write a MB of code Pin
Munchies_Matt4-Sep-18 22:40
Munchies_Matt4-Sep-18 22:40 
GeneralRe: how long would it take to write a MB of code Pin
Brady Kelly6-Sep-18 2:42
Brady Kelly6-Sep-18 2:42 
GeneralRe: how long would it take to write a MB of code Pin
Munchies_Matt6-Sep-18 2:44
Munchies_Matt6-Sep-18 2:44 
GeneralRe: how long would it take to write a MB of code Pin
dandy724-Sep-18 7:50
dandy724-Sep-18 7:50 
AnswerRe: how long would it take to write a MB of code Pin
raddevus4-Sep-18 8:37
mvaraddevus4-Sep-18 8:37 
GeneralRe: how long would it take to write a MB of code Pin
SirWernich4-Sep-18 20:49
SirWernich4-Sep-18 20:49 
GeneralRe: how long would it take to write a MB of code Pin
Dar Brett4-Sep-18 20:53
Dar Brett4-Sep-18 20:53 
GeneralRe: how long would it take to write a MB of code Pin
Michael Martin4-Sep-18 21:42
professionalMichael Martin4-Sep-18 21:42 
GeneralRe: how long would it take to write a MB of code Pin
Gary Wheeler5-Sep-18 2:59
Gary Wheeler5-Sep-18 2:59 
GeneralRe: how long would it take to write a MB of code Pin
raddevus5-Sep-18 3:11
mvaraddevus5-Sep-18 3:11 
GeneralRe: how long would it take to write a MB of code Pin
Gary Wheeler5-Sep-18 3:27
Gary Wheeler5-Sep-18 3:27 
GeneralRe: how long would it take to write a MB of code Pin
theoldfool4-Sep-18 10:12
professionaltheoldfool4-Sep-18 10:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.