text files

Results 1 to 2 of 2

Thread: text files

  1. #1
    Join Date
    Dec 1969

    Default text files

    I have a text file (info.txt) whose contents are like the example below<BR><BR>Csharp is a dot net language. It is a &#060;%Table1.column1%&#062; object oriented language.<BR>Inheritance is a &#060;%Table1.column2%&#062; part of csharp.<BR><BR>Thank You &#060;%Table2.column1%&#062;<BR><BR>Here the &#060;%Table1.column1%&#062; and etc indicates the name of the table and column name in the database.<BR>I need to take in the contents of this text file into a string variable while replacing the &#060;%Table1.column1%&#062; with the value from that particular table1 and column1 whose rows I get from a sql query. The number of columns to display will vary and be read from the info.txt file.<BR>How do i solve this?<BR>Thanx.

  2. #2
    Join Date
    Dec 1969

    Default RE: text files

    Load your text file into a string builder object and use a .REPLACE to replace yours string with those from the DB.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts