Hi Bec,

My only advice will be that not to deal directly with the text file or
the memory mapped file.
I would recommend having at least two layers:

1.To deal with the file at the low level directly as
text-file/memory-mapped-file/etc.

2.A logical layer that uses the low level layer. In this layer you
would be dealing with concepts that are abstraction the logic of what
you are trying to do rather than handling low level
string/stream/file/etc. manipulations.

Regards

Arjang


On 9 February 2011 10:03, Bec Carter <[email protected]> wrote:
> G'day Arjang!
>
> It's a config file for a legacy system which I have no control over.
> As a favour to a friend I created a simple winforms UI allowing them
> to enter some values, do some calculations and then insert them into
> the file at particular positions.
>
> I ended up going with Michael Minutillo's .NET 4 suggestion- that
> worked well. I will be looking into T4 and the other stuff Michael
> mentioned also since that stuff sounds pretty cool.
>
> Cheers.
> Bec
>
> On Tue, Feb 8, 2011 at 2:03 PM, Arjang Assadi <[email protected]> wrote:
>> What is the real problem that a solution to it consists of  putting
>> certain values (after computing them) in very lage file?
>>
>> Need more info for a meaningfull solutions.
>>
>> Regards
>>
>> Arjang
>>
>>
>>> various spots in a very large text file
>>
>> On 7 February 2011 10:21, Bec Carter <[email protected]> wrote:
>>> Good mornin' all!
>>>
>>> I've a requirement to put certain values (after computing them) in
>>> various spots in a very large text file. So basically the starting
>>> text file can have placeholders where these computed values will end
>>> up- like a template. Then my code will compute some values based on
>>> user input and i need to fill in the placeholders.
>>> Is there a better way to do this besides a simple string replace?
>>>
>>> Cheers.
>>> Bec
>>>
>>
>

Reply via email to