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...
User Profile
Collapse
-
FileSystemWatcher IncludeSubdirectories problem
-
That is helpful. Thanks! -
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.Leave a comment:
-
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... -
-
-
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.... -
Hi Shashi,
That's just what I was looking for. Thank you. This is something I'm sure to use many times.
PaulLeave a comment:
-
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... -
Thank you so much! I knew it was somthing simple but I kept over looking it.Leave a comment:
-
.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... -
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");
Leave a comment:
-
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. ...
No activity results to display
Show More
Leave a comment: