Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Are you board try this!  (Read 8061 times)

0 Members and 1 Guest are viewing this topic.

dakota

  • Guest
Are you board try this!
« on: July 20, 2006, 03:08:55 PM »
Here is a little somthing for you to trry if you are board.
Ok make a batch file that will scrammble a text file.
  • [highlight]Randomly[/highlight] sramble the file.
  • The output file needs to be the same name as the starting file.
  • It needs to work on a file of any size.
  • Scramble the file by spaces.

If you have any questions on what I am talking about ask.
[size=20]
See if you can be th first to ger it!![/size]

You can PM yor results to me or just post them in a reply.

Have Fun and good luck.
« Last Edit: July 20, 2006, 03:09:30 PM by dakota »

dakota

  • Guest
Re: Are you board try this!
« Reply #1 on: July 20, 2006, 10:44:55 PM »
Anyone want to try?

ghostdog74



    Specialist

    Thanked: 27
    Re: Are you board try this!
    « Reply #2 on: July 20, 2006, 11:16:01 PM »
    do you have your own solution? or is it something you can't solve using batch and needed help?

    anyway, i felt bored now..as it's lunchtime and i have finished lunch, so i did this
    Code: [Select]
    import random
    o = open("outputfile","a")
    alltext = open("textfile").read()
    beforeshuffled=list(alltext)
    aftershuffled = random.shuffle(beforeshuffled)
    o.write(''.join(aftershuffled))
    o.close()






    « Last Edit: July 20, 2006, 11:17:22 PM by ghostdog74 »

    dakota

    • Guest
    Re: Are you board try this!
    « Reply #3 on: July 21, 2006, 12:06:45 AM »
    I am working on it it is not somthing i needed done but i thought it would be fun for people to try. I have a good i dea on how to do it.

    dakota

    • Guest
    Re: Are you board try this!
    « Reply #4 on: July 21, 2006, 12:07:20 AM »
    Try to do it only in batch.

    ghostdog74



      Specialist

      Thanked: 27
      Re: Are you board try this!
      « Reply #5 on: July 21, 2006, 01:23:30 AM »
      With less than ten lines of code in my own fav prog lang, why would i want to do it in batch?
      anyway, you have fun...
      « Last Edit: July 21, 2006, 01:24:15 AM by ghostdog74 »

      dakota

      • Guest
      Re: Are you board try this!
      « Reply #6 on: July 24, 2006, 03:36:56 AM »
      What langage is that? And any one ealse want to try.

      GX1_Man

      • Guest
      Re: Are you board try this!
      « Reply #7 on: July 24, 2006, 08:50:43 PM »
      Guess not.  ::)


      I'm thinking of a number between one and 10. Guess what it is.
      « Last Edit: July 24, 2006, 08:51:16 PM by GX1_Man »

      dakota

      • Guest
      Re: Are you board try this!
      « Reply #8 on: July 25, 2006, 11:17:19 PM »
      7

      GX1_Man

      • Guest
      Re: Are you board try this!
      « Reply #9 on: July 26, 2006, 04:20:42 AM »
      Wrong.  ::)

      DosItHelp



        Intermediate
        Re: Are you board try this!
        « Reply #10 on: July 26, 2006, 06:42:49 PM »
        6

        GX1_Man

        • Guest
        Re: Are you board try this!
        « Reply #11 on: July 26, 2006, 06:52:46 PM »
        Nope.  ::)

        DosItHelp



          Intermediate
          Re: Are you board try this!
          « Reply #12 on: July 26, 2006, 07:12:53 PM »
          Greater than 5?
          « Last Edit: July 26, 2006, 07:13:18 PM by DosItHelp »

          GX1_Man

          • Guest
          Re: Are you board try this!
          « Reply #13 on: July 26, 2006, 07:17:04 PM »
          That is not guessing a number. That is seeking a range of numbers.  ::)

          dl65

          • R.I.P.


          • Prodigy

            Thanked: 18
            Re: Are you board try this!
            « Reply #14 on: July 26, 2006, 07:37:07 PM »
             dakota.......

            Quote
            Here is a little somthing for you to trry if you are board.
            Ok make a batch file that will scrammble a text file.  
            .........

            You are kidding of course ....... like your yanking our chain ?

            But since you like to play games .......  here's one for you ....and I assure you there is an answer .......... Since you are bored ....see how long it takes you to solve this ..........   Here it is ..........

            "Why eat fish , Ice cream has no bones "    ..... let's see how long it takes you to create a batch file to sort it out .

            ENJOY

            dl65  ::)
            « Last Edit: July 26, 2006, 07:37:44 PM by dl65 »
            If you don't know the answer, it isn't a dumb question.