Search Results

Showing results 1 to 20 of 20
Search took 0.00 seconds.
Search: Posts Made By: 666kennedy ; Forum: C# and child forums
Forum: C# Aug 13th, 2009
Replies: 2
Views: 347
Posted By 666kennedy
i have a tag;

XXX32353.mv

i need to be able to change the mv to something else, and the number of characters to the left of the . is not always constant. therefore i need to cut from the right,...
Forum: C# Aug 13th, 2009
Replies: 2
Views: 317
Posted By 666kennedy
i have 2 arrays

controllerlist[11] and taglist[5]

i need to compare them so that i can find any elements that match, is there a way of doing it instead of nested for loops?
Forum: C# Aug 12th, 2009
Replies: 1
Views: 1,368
Posted By 666kennedy
i have this code ...


namespace ConsoleApplication1
{
class watchmove
{
private static string myString = string.Empty;

static void Main(string[] args)
Forum: C# Aug 7th, 2009
Replies: 11
Views: 818
Posted By 666kennedy
cheers i did something similar, i have a parts of my code triming and spliting the code up so i just copied on of those, pointed it at the right string and populated a new array with the values, then...
Forum: C# Aug 7th, 2009
Replies: 11
Views: 818
Posted By 666kennedy
yeah it is, each file comes in with same string, but different time and date.
Forum: C# Aug 7th, 2009
Replies: 11
Views: 818
Posted By 666kennedy
i have this in a string:

"DATA COLLECTED FOR 24 HOURS STARTING AT: 09:00:00 Hrs 27-08-09"

how would i go about making it "27-08-09 09:00:00"

i have a rough idea with splits and trims etc but...
Forum: C# Aug 7th, 2009
Replies: 11
Views: 818
Posted By 666kennedy
cheers thats helped, i have a part of a string that has the date in it, i can extract it but how do i use that as the start time.

like how would 27/08/2009 09:00:00 actually be put into "time" so...
Forum: C# Aug 7th, 2009
Replies: 11
Views: 818
Posted By 666kennedy
i know that the datetime.utcnow command is to show the date and time of the instant it was called.

just say i have this


int time;
time = //27/08/2009 09:00:00

time = time + //15 seconds
Forum: C# Aug 4th, 2009
Replies: 5
Views: 242
Posted By 666kennedy
how do you set that up to use in the code. i have looked on msdn but its not completely apparent!
Forum: C# Aug 4th, 2009
Replies: 5
Views: 242
Posted By 666kennedy
hey there. thanks for all the help i have recieved from the people on this site!

i have a new problem, one i could solve if i was using VB but im using C# and i dont really know what to do.

i...
Forum: C# Jul 22nd, 2009
Replies: 3
Views: 536
Posted By 666kennedy
aw thank you so much. totally worked! cheers!

is this robust enough to handle me putting csv files into a big excel file, obviously if i chance the .txt to .csv and set the folders up as they...
Forum: C# Jul 22nd, 2009
Replies: 3
Views: 536
Posted By 666kennedy
i have a filesystemwatcher looking for a file, then once the file comes into the folder ive set, it then reads all the lines of data from inside each file in the folder being monitored. each read...
Forum: C# Jul 21st, 2009
Replies: 7
Views: 235
Posted By 666kennedy
i am basically monitoring a folder, and there are files being passed into it, but when a file comes in called "TransferComplete" i want it to go through the other files in the folder, taking whats in...
Forum: C# Jul 21st, 2009
Replies: 7
Views: 235
Posted By 666kennedy
To get the folder not the file i needed:

Path.GetDirectoryName(e.FullPath)

as you predicted, access to the file was denied, although i dont know why, its not actually in use by another...
Forum: C# Jul 21st, 2009
Replies: 7
Views: 235
Posted By 666kennedy
the filesystem watcher only checks for files being created in that folder, so its not being used by another application.

cheers abotu the e.fullpath thing, how would i actually get/set up the...
Forum: C# Jul 21st, 2009
Replies: 7
Views: 235
Posted By 666kennedy
hey, i have my streamreader code, but im running it in a filesystem watcher program,

once a certain file is seen, then read other files in the folder

so i basically have the filesystem watcher...
Forum: C# Jul 20th, 2009
Replies: 4
Views: 271
Posted By 666kennedy
cheers, thats the ticket with the stream reader and writers.

thanks again
Forum: C# Jul 20th, 2009
Replies: 4
Views: 271
Posted By 666kennedy
is that copying the whole file, or copying the data from inside it. as ill be going through a folder with many files, adding all the data into one big file (for example an excel file) in another...
Forum: C# Jul 20th, 2009
Replies: 4
Views: 271
Posted By 666kennedy
is there a method, using C# that i can open a file, then copy the data from it into another file in a different folder?

the file doesnt need to be opened, just the data inside moved to another...
Forum: C# Jul 15th, 2009
Replies: 10
Views: 805
Posted By 666kennedy
i currently am developing a program that monitors a folder, if anything new is added to the folder it is then copied to another folder.

the code i have so far is

using System;
using...
Showing results 1 to 20 of 20

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC