Search Result

Collapse
4 results in 0.0015 seconds.
Keywords
Members
Tags
reading
  •  

  • john eipe
    started a topic reading a file that doesn't exist
    in C

    reading a file that doesn't exist

    Hi,

    I have got a small program that prints the contents of files using the system call - read.

    Code:
    	unsigned char buffer[8];
    	size_t offset=0;
    	size_t bytes_read;
    
    	int i;
    
    	int fd = open(argv[1], O_RDONLY);
    	
    	do{
    		bytes_read = read(fd, buffer, sizeof(buffer));
    		printf("0x%06x : ", offset);
    	
    		for(i=0; i<bytes_read;
    ...
    See more | Go to post

  • Why am I getting an error saving an attachment using smtpop?

    Hi
    I'm using the GPL tool smtpop to read email from an account and save attachments to the server.

    I'm using the standard code as supplied in the help. An excerpt is shown below.

    The code reads the email OK but fails attempting to read the attachment.

    I get an error "Invalid character in Base-64 string" at
    Convert.FromBas e64String(attac h.Body);

    The file I am trying...
    See more | Go to post

  • In hibernate is it necessary to use Transaction while reading?

    Hi,
    In some examples of hibernate I have seen on the net, people have used Transaction while doing a session.get.
    Is it necessary to use Transaction while reading using hibernate?
    The reason I'm asking this is that today I got a org.hibernate.e xception.LockAc quisitionExcept ion while reading from a table using hibernate.
    The table is on a remote machine and is being used by more than one process.
    Anyways, where to...
    See more | Go to post

  • Guido Geurs
    started a topic how to trap an error reading CDrom

    how to trap an error reading CDrom

    I'm writing a program that list the contents of a CDrom and also the contents of the ZIP files.
    When there is a bad Zip file on the CD, the program keeps traying to reed the file and after +- 50 times it gives the error and ends the function.
    This function is called from an other function that scans al the files on the disc.
    Is it possible to give an error but that the program continues with the next file ?
    =============== ==============...
    See more | Go to post
    Last edited by debasisdas; Oct 13 '09, 12:03 PM. Reason: Formatted using code tags.
Working...