A little direction

Discussion in 'Programming General' started by DatSik., Sep 15, 2012.

A little direction
  1. Unread #1 - Sep 15, 2012 at 3:50 PM
  2. DatSik.
    Joined:
    Aug 16, 2012
    Posts:
    183
    Referrals:
    0
    Sythe Gold:
    0

    DatSik. Active Member
    Banned

    A little direction

    Hello all.

    Well is what im wanting to do is attempt to write a program in C# that take a .txt doc and add your desired string or character at the beginning or end or both. I have no idea where to even start so I was hoping someone could shed some light on this for me.

    Also while im at it, is it possible to take 2 separate .txt docs..lets say one is filled with the names of documents and the other is filled with links to the document, can you join them together, while placing lets say html or css(doesn't matter just string in general) code/tags at the beggining of the line, in between the title's and links of the documents and at the end also?

    thanks in advance for any inpu
     
  3. Unread #2 - Sep 15, 2012 at 6:14 PM
  4. iJava
    Joined:
    Nov 21, 2011
    Posts:
    1,197
    Referrals:
    11
    Sythe Gold:
    485
    Discord Unique ID:
    220055593568829441

    iJava .Previously known as RSGoldRush
    $200 USD Donor New

    A little direction

    Look into BufferedReader(or whatever C# has) then you'll need to parse the document to a string and use regex to modify the string and add what you want, then save it(BufferedWriter).
     
  5. Unread #3 - Sep 15, 2012 at 6:28 PM
  6. ThomasH
    Joined:
    Apr 7, 2012
    Posts:
    510
    Referrals:
    0
    Sythe Gold:
    0

    ThomasH Forum Addict

    A little direction

    Look into FileStream and StreamWriter.
     
  7. Unread #4 - Sep 15, 2012 at 6:45 PM
  8. DatSik.
    Joined:
    Aug 16, 2012
    Posts:
    183
    Referrals:
    0
    Sythe Gold:
    0

    DatSik. Active Member
    Banned

    A little direction

    Thanks to the both of you, I appreciate your input. Ill read up on this
     
  9. Unread #5 - Sep 15, 2012 at 6:46 PM
  10. ThomasH
    Joined:
    Apr 7, 2012
    Posts:
    510
    Referrals:
    0
    Sythe Gold:
    0

    ThomasH Forum Addict

    A little direction

    Also; does it have to be C#? Or do you just need the task done?

    Like, is it a project for school, or some type of class/for another person? Or is it just a simple thing you want done?
     
  11. Unread #6 - Sep 15, 2012 at 7:45 PM
  12. DatSik.
    Joined:
    Aug 16, 2012
    Posts:
    183
    Referrals:
    0
    Sythe Gold:
    0

    DatSik. Active Member
    Banned

    A little direction

    Its just a simple thing i want done, it doesent have to be in c# but thats what im currently messing with, id like to see it done in batch also if possible
     
< Having trouble making an RS Client | Looking for Advanced Java Coders >

Users viewing this thread
1 guest


 
 
Adblock breaks this site