Search results

  1. T

    RegEx Help

    I have lines of text I am reading in and am trying to match the line with regex but I dont know if my pattern is correct. The line looks like this, but multi cols, tab delimited. 0 38.159481 0.01 38.159481 0.02 38.312172 0.03 38.159481 0.04 38.159481...
  2. T

    Registry Questions

    Well if I only need to store the path to which a config file is to be loaded from, what would the best and most efficient way be? Seems like the xml is hardly a convenient way to do so, just to store one line. Id like to make it so the user can set the default file to use so every time they...
  3. T

    Registry Questions

    How do you serialize an object like that to write to xml. Just for clarity-I am looking to save the info out of a few textboxes that the user puts in and that will be able to load back up when the app loads again. XML definitely sounds great and all and I have used it elsewhere but it seems so...
  4. T

    Registry Questions

    Ive looked over the docs and other threads but cant seem to make heads or tails as how to create registry items in the current user acct under software. Im just looking for a quick and easy solution to loads some paths and other info from. All the xml stuff looks too huge to write simple 5 lines...
  5. T

    Multiple open file question

    Thanks. Works great!
  6. T

    Multiple open file question

    How can I make an if statement to determine whether I have 1 file or more than one? Im doing this but it does not work correctly. Dim OpenFileDialog1 As New OpenFileDialog Dim i As Integer ' Set properties as appropriate. OpenFileDialog1.CheckFileExists = True...
  7. T

    Formatting a file...

    Ok, couple of questions. If I read it in like that, what would I do to separate each field by the comma? Basically I would have to loop thru 2 lines and get rid of the spaces on both and then combine them to make 1 single line with data throughout.
  8. T

    Formatting a file...

    Ok. This is basically what Im aiming to get from a comma seperated value file: It looks like this: LineNo data1, data2, space, space LineNo space, space, data3, data4 I want it to become: LineNo data1, data2, space, space space, space, data3, data4 then becomes: LineNo data1, data2...
  9. T

    Large Text Files

    I am using an array to load from a text file that is about 50 megs. Loading it is fast but then transferring that to a grid is very slow. I need to present the data to the end user and do number crunching and charting with it. Any ideas on how to load the grid faster? Do you think doing this in...
Top Bottom