Click here to Skip to main content
15,900,589 members
Home / Discussions / C#
   

C#

 
GeneralRe: SOAP header Pin
George_George21-Sep-08 20:57
George_George21-Sep-08 20:57 
GeneralRe: SOAP header Pin
Wendelius22-Sep-08 9:55
mentorWendelius22-Sep-08 9:55 
GeneralRe: SOAP header Pin
George_George22-Sep-08 17:49
George_George22-Sep-08 17:49 
GeneralRe: SOAP header Pin
Wendelius23-Sep-08 7:48
mentorWendelius23-Sep-08 7:48 
GeneralRe: SOAP header Pin
George_George23-Sep-08 20:46
George_George23-Sep-08 20:46 
GeneralRe: SOAP header Pin
Wendelius24-Sep-08 7:44
mentorWendelius24-Sep-08 7:44 
GeneralRe: SOAP header Pin
George_George24-Sep-08 20:36
George_George24-Sep-08 20:36 
QuestionIOExpection error using Streamreader and FileStream Pin
yefeng_law20-Sep-08 18:58
yefeng_law20-Sep-08 18:58 
hi,

this is exactly my first program, i will be using C#. The device i am using is a usb connected PC digital TV receiver this receiver software actually have a function which measure the signal strength, BER and these data are save into an log file (thus it real time measurement data) once i start the device (start watch TV).

I am suppose to use C# to get the real time measurement and convert it into graphic (line chart).

I have try to get the data for the log file and display it in the textbox using the following code

using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Testing_1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
StreamReader objstream = new StreamReader("c:\\measurement.log");
textBox1.Text = objstream.ReadToEnd();

}


but this is the error i got : IOExpection was unhandled the file been use by another program.

I also try another method which is directly from the usb port which the device is connected to but i am unable to start working on it coding. i had been looking into example of usb_hib and ICSHARPUSBlib but i was unable to get anything out.

Thus please help me, if i am in the right direction (get the data from usb directly?) or do you have any better item on how i should get this done, any code to refer to.

thank so much
AnswerRe: IOExpection error using Streamreader and FileStream Pin
Harvey Saayman20-Sep-08 21:24
Harvey Saayman20-Sep-08 21:24 
GeneralRe: IOExpection error using Streamreader and FileStream Pin
yefeng_law21-Sep-08 3:33
yefeng_law21-Sep-08 3:33 
GeneralRe: IOExpection error using Streamreader and FileStream Pin
Harvey Saayman21-Sep-08 3:38
Harvey Saayman21-Sep-08 3:38 
GeneralRe: IOExpection error using Streamreader and FileStream Pin
yefeng_law21-Sep-08 3:57
yefeng_law21-Sep-08 3:57 
GeneralRe: IOExpection error using Streamreader and FileStream Pin
Harvey Saayman21-Sep-08 4:00
Harvey Saayman21-Sep-08 4:00 
GeneralRe: IOExpection error using Streamreader and FileStream Pin
yefeng_law21-Sep-08 7:24
yefeng_law21-Sep-08 7:24 
AnswerRe: IOExpection error using Streamreader and FileStream Pin
zafersavas21-Sep-08 0:59
zafersavas21-Sep-08 0:59 
Questionhow to crate an class from the xsd Pin
prasadbuddhika20-Sep-08 18:47
prasadbuddhika20-Sep-08 18:47 
AnswerRe: how to crate an class from the xsd Pin
Mirko198024-Sep-08 4:16
Mirko198024-Sep-08 4:16 
Questionnewbee question Pin
Rafone20-Sep-08 16:08
Rafone20-Sep-08 16:08 
AnswerRe: newbee question Pin
Caio Kinzel Filho20-Sep-08 16:28
Caio Kinzel Filho20-Sep-08 16:28 
GeneralRe: newbee question Pin
Rafone20-Sep-08 16:56
Rafone20-Sep-08 16:56 
GeneralRe: newbee question Pin
Caio Kinzel Filho20-Sep-08 17:52
Caio Kinzel Filho20-Sep-08 17:52 
GeneralRe: newbee question Pin
Rafone20-Sep-08 18:34
Rafone20-Sep-08 18:34 
GeneralRe: newbee question Pin
Caio Kinzel Filho20-Sep-08 22:52
Caio Kinzel Filho20-Sep-08 22:52 
AnswerOT Pin
Harvey Saayman20-Sep-08 21:28
Harvey Saayman20-Sep-08 21:28 
QuestionCustom DataGridViewCell data binding question. Pin
Bliedtke20-Sep-08 15:49
Bliedtke20-Sep-08 15:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.