Click here to Skip to main content
15,041,025 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi All,

I am new to C# and on a learning curve with this Lanuage and any help would be awesomely appericated:

but in a nutshell i want to be able to read a text file located on my C Drive and then append the string "\SHARE" to the end of each line and then save the file again.




i no it has something to do with a for next loop but im just bit stuck...
If anyone would be able point me in the write direction would really appreicate it.

Updated 1-Jun-12 11:02am
What have you done so far? The problem is trivial, so you need to do at least something and ask a particular question when and if you face the problem.
What do you fail to understand? How create strings? How to read text file? how to write it? how to write code?
R. Giskard Reventlov 1-Jun-12 17:02pm
How to spell? Ironically, he spells 'right' as 'write'. Hilarious.

1 solution

Read this[^].

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900