I have created an application with 3 terminal windows for capturing data from 3 serial ports and outputting the data to a file. It seems to work well with one serial port, but when I fire all 3 serial ports at once, the application hangs. Here is the portion of the code that I believe is the...
HI all. I am a little stuck on a peocedure.
I'm trying to move files once they have been imported into SQL Server. The first file moves correctly, then I get the above error.
I know it's something to do with dispose or close but can't get my head around it. Here is the code so far, the main part...
I am making a program to save it to (.txt).
I am making it using System.IO.
So far, my program can save the file already.
But, I don't know how to make it readonly programatically.
Please help me.
Thanks in Advance.
I am reading filenames and some details recursively, starting from a user selected folder.
Dim Path As New DirectoryInfo(NewPath)
Dim File As FileInfo
' Get details for each file
For Each File In Path.GetFiles
I tried scanning an entire drive to test the code and...
Hi everyone. My project in CFNet 2.0 tells me to add an assembly:
Error 1 Reference required to assembly 'System, Version=18.104.22.168, Culture=neutral, PublicKeyToken=b77a5c561934e089' containing the type 'System.IO.Ports.Parity'. Add one to your project.
I am familiar with adding resources eg...
Does anyone know if it's possible to iterate through every parent of a specified subdirectory until you reach the directory's root so that I can count the number of parents? I'm new to System.IO, but I have'nt seen any included counting functions.