User Profile

Collapse

Profile Sidebar

Collapse
Paul73
Paul73
Last Activity: Jun 15 '11, 12:29 AM
Joined: Sep 14 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Paul73
    started a topic FileSystemWatcher IncludeSubdirectories problem

    FileSystemWatcher IncludeSubdirectories problem

    Hi everyone,

    I'm hoping someone can help me. I'm using FileSystemWatch er to watch a folder on the network that'll copy files to a local drive. Everything works fine when files are added to the root directory. So x:\file.txt is copied to c:\file.txt.

    But when I drop a file into a subdirectory (ie. x:\subFolder\fi le.txt to c:\file.txt) I get an UnauthorizedAcc essException error.

    It looks like when a file...
    See more | Go to post

  • Paul73
    replied to Splitting file into multiple files
    That is helpful. Thanks!
    See more | Go to post

    Leave a comment:


  • Paul73
    replied to Splitting file into multiple files
    Hi tlhintoq,

    Thanks for your response. Sadly, I don't have any code. I'm flat-out stuck on this. How could you append to multiple files, each with different filenames? That's what's really confusing me.
    See more | Go to post

    Leave a comment:


  • Paul73
    started a topic Splitting file into multiple files

    Splitting file into multiple files

    Hi everyone,

    I have a file that needs to be split into multiple files. A code determines when the split will occur. The problem I'm having is the number of different codes varies each time I'll run the program. For example, one time the file may look like this:

    Code1, Name, address, city st zip
    Code2, Name, address, city st zip
    Code3, Name, address, city st zip

    So this file would need three...
    See more | Go to post

  • Paul73
    replied to Inserting alphanumeric into SQL db?
    in .NET
    Thanks, I'll take your advice. Have a great weekend!...
    See more | Go to post

    Leave a comment:


  • Paul73
    replied to Inserting alphanumeric into SQL db?
    in .NET
    Nevermind. I was missing a ' around the JobID field.
    See more | Go to post

    Leave a comment:


  • Paul73
    started a topic Inserting alphanumeric into SQL db?
    in .NET

    Inserting alphanumeric into SQL db?

    Hi everyone,

    I'm hoping someone can help me. I've created a windows app that inserts data into a sql database.

    The data comes from textboxes. This is a simple app that will only be used by me on a local computer so I'm not worried about sql injections.

    My problem is this...if I enter a job id that contains all numbers (ie. 12345) into textBox1 everything works fine and the database inserts the new record....
    See more | Go to post

  • Paul73
    replied to Searching string in between characters?
    in .NET
    Hi Shashi,

    That's just what I was looking for. Thank you. This is something I'm sure to use many times.

    Paul
    See more | Go to post

    Leave a comment:


  • Paul73
    started a topic Searching string in between characters?
    in .NET

    Searching string in between characters?

    Hi everyone,

    I've had good luck with the questions I've posted on here so I'm going to try again.

    Let's say you had a string that looked like this:



    How would you extract everything between the 2nd and 3rd |? I know how to find the first or last occurance of a character but I'm not sure how to do this.

    Thanks for your help,
    Paul...
    See more | Go to post

  • Paul73
    replied to .IndexOf only searching beginning of string.
    in .NET
    Thank you so much! I knew it was somthing simple but I kept over looking it.
    See more | Go to post

    Leave a comment:


  • Paul73
    started a topic .IndexOf only searching beginning of string.
    in .NET

    .IndexOf only searching beginning of string.

    This is driving me nuts. Someone please help me with this. I have a program that's reading a list of terms to search for.

    The .IndexOf works fine if the term being searched for is in the first few characters. But it doesn't work if the term is anywhere else in the file.

    For example. Let's say I'm searching for Notice1. If the record looks like this it'll find it...

    Notice1","Some data","Some...
    See more | Go to post

  • Paul73
    replied to Foreach not looping through
    in .NET
    Sorry. I've placed them inside the [CODE]

    Code:
    // CREATE OUTPUT FILES
    
    StreamReader sr2 = new StreamReader("input.in");
    StreamWriter sw3 = new StreamWriter("production.out");
    StreamWriter sw4 = new StreamWriter("hold.out");
    string line;
    
    
    // READ SEARCH FILE INTO AN ARRAY
    
    StreamReader sr3 = new StreamReader("SearchFile.txt");
    ...
    See more | Go to post

    Leave a comment:


  • Paul73
    started a topic Foreach not looping through
    in .NET

    Foreach not looping through

    First off...thank you all for this forum. I've lurked for quite a while and you've all been so helpful. It's a life saver for someone like me.

    Now here's my problem. What I'm trying to do is search each record in a file for an id number. When it finds the number it saves it to production.out. When it doesn't find it it saves it to hold.out.

    The id numbers are stored in a separate text file so anyone can edit it. ...
    See more | Go to post
No activity results to display
Show More
Working...