new program

kapital

New Member
I would like to create a program, that will from word document which exist in form of automatically numbered lines(20 lines) create a new word document of four randomly chosen lines from first document, number 1-4. I do not know how much about programing, can somebody please give me advice what can I do?
 
I would like to create a program, that will from word document which exist in form of automatically numbered lines(20 lines) create a new word document of four randomly chosen lines from first document, number 1-4. I do not know how much about programing, can somebody please give me advice what can I do?

You should probably learn to program... what you want to do is very basic, so you won't need to learn too much.

Honestly, though. You could likely just do this with a simple script.
 
You need to first open a text from that text file into let's say a simple string value and then pick random lines from that string value and then save them into a new text document from that string value using let's say StreamWriter class.

But like Troncoso said...first learn the basics of programming and then more and more advanced things because without that you will not be able to do what you want to do plus anything else.Simply because there is no magical line of code that will always do what you want.Sometimes there is,but that is SOOOOO rarely lol.



OMG I just made 1700. post!!! LET'S CELEBRATE PEOPLE!!!
 
Well, since I am relly at the beginning could somebody please give me a little bit more specific instructions? I thik this relly is simple, but I just dont know what do to.
 
Well, since I am relly at the beginning could somebody please give me a little bit more specific instructions? I thik this relly is simple, but I just dont know what do to.

I don't think you understand. It's simple for someone who understand programming concepts and techniques.

So, you'll need to learn that before you can attempt this.
Or, you could go on Odesk, and offer someone a small amount to write it for you.
 
Ok. How much time(approximately) would I need to learn to do something like this? And where is a good place to start- which book or web page?
 
http://thenewboston.org/list.php?cat=15

Here are video tutorials for C#. After watching about 55 videos, you'll have enough information to do what you need. (They are only 4-10 minutes each).

http://thenewboston.org/list.php?cat=36

This is a series from the same people, but using Python. If you've never programmed before, then you will find Python a much easier language to learn. You'll need to watch all the videos to learn what you need to know (43 total).
 
I agree with Troncoso.
It might seem like a simple task/program,but programming that simple task/program is completely a different story and it's not that simple unless if you are doing something REALLY simple lol.

Anyway do what Troncoso told you.First learn the basic programming concepts and techniques and then you will be able to create things/programs/tasks you want.Because programming is not something simple what you can learn in few days and just COPY and PASTE the code that someone else gave you and exect it to work.

Anyway there are many programming languages you can learn such as VB,C#,J#,C++ and so on...
My favorite is C#.I just like how it's syntax looks like.But that is just me:D

You can download Visual C# Express from Microsoft web site and then start learning C# by going to:

www.learnvisualstudio.com

Start with something simple as a MESSAGE BOX and investigate simple things like that in the beginning.Do not attempt to make a program for let's say encryption / decryption operations because you won't understand anything without knowing the basics plus many other things.




Cheers!
 
Back
Top