Hey!
My code is below, and the problem is that some of the emails i get from my POP3 account cannot be read, but with a simple unix email client it can be.
It would be very helpful if you can find me what the problem is, or give me some advices.
ps.: yes, i have read the tutorials already.
String[] messageText = new String[500];
Stor...
Hi,
I'm trying to read a java file and display in console the package, class and method name. something like this:
File: Test.java
package tspec.test;
public class Test {
public void addTest () {}
public void deleteTest () {}
}
Output:
package name: tspec.test
class name: Test
method name:
addTest
deleteTest
Thanks in adva...
hey
What is best possible way to protect Excel work book(read only) and work sheets without using
password using SpreadsheetGear dll in c#?
...
What is the Microsoft-approved way to extract the raw audio data from an audio CD? I'm hoping to do this with C++ or C.
It's ironic because in XP/Vista/7, there is the IMAPI (Image Mastering API) for writing data, but not for reading it.
Is there a set of API functions for this? Or do I need to send SCSI commands?
...
This program is supposed to read files and write them. I took the file open checks out because they kept causing errors. The problem is that the files open like they are supposed to and the names are correct but nothing is on any of the text screens. Do you know what is wrong?
#include<iostream>
#include<fstream>
#include<cstdlib>
#incl...
int price=' '; // attempt to grab a decimal number - but not the correct way
int itemnum=' '; // attempt to grab a whole number - but not the right way
while((price== (price*1.00)) && (itemnum == (itemnum*1)))
What is a way to get numbers in 2 diff columns where one column is whole numbers and the other are numbers with decimal plac...
Hi Folks,
I am beginner to scripting and vigorously learning TCL for the development of embedded system.
I have to Search for the files with only .txt format in the current directory, count the number of cases of each different "Interface # nnnn" string in .txt file, where nnnn is a 4 to 32 digits max hexadecimal number and o/p of a tab...
Here is my PHP code:
<?php
// Enumerate the directories in styles
$styles_dir = 'styles/';
if($handle = opendir($styles_dir))
{
while(FALSE !== ($file = readdir($handle)))
{
echo $file . '(' . is_dir($file) . ')<br>';
}
}
?>
Here are the directories in styles:
And here is the output:
.(1)
..(1)
forest()
indus...
Dear all,
Does anyone have some advise how to read a comma separated data file into matlab? The simple solutions (like dlmread, fscanf) do not seem to work, as there are multiple (10) lines of header information. The closest I got to a solution is:
C=textscan(datafile)
G=cell2mat(C{1,1}(34:endoffile)}) //34 is the line the data starts
...
I want a c++ Code to read every pixel from an image file. and i want to save the pixels like:
r[]
g[]
b[]
does somebody know how to do this?
...
I am stuck in putting the Jave text file read code in JADE GUI. Please assist.I.e. Show using a simple code. I am new to Jade but experienced in Java coding.
...
I have a txt file on the server which contains 10 lines of text. The text file is rewritten sometimes, and I get new lines using "\r\n". My problem shows when I want to load the lines in javascript variables. I do it like this, but this work only for numbers or for the last line of the file, because its not using the breakline tag: var x...
Let's assume I want to send many messages between 2 programs made in java that use TCP sockets.
I think the most convienient way is to send objects like:
PrintStream ps = new PrintStream(s.getOutputStream());
ObjectOutputStream oos = new ObjectOutputStream(ps);
some_kind_of_object_here;
oos.writeObject(some_kind_of_object_here);...
Hi,
I have a structure with the following definition:
typedef struct myStruct{
int a;
char* c;
int f;
} OBJECT;
I am able to populate this object and write it to a file. However I am not able to read the char* c value in it...while trying to read it, it gives me a segmentation fault error. Is there anything wrong with my ...
So I have a file stream from a parent process to a child - and most of the time it works fine. However, when reading from it multiple times quickly, using fgets() will return NULL and the error is set to "resource temporarily unavailable". The problem is intermittent - and running the script that does the reads will sometimes have fgets ...
I asked this question a few days ago but it seems to have gone cold fairly quickly. What I want to do is pretty simple and I can't believe someone hasn't figured it out.
Solution needs to be JScript classic ASP. I am reading a file from a remote server and I want to process that (binary) file on my server and spit the results back to ...
While i am retrieving data from cassandra using thrift and php, it alwas taking 60 sec. Why
...
Hello SOers,
I'm currently using PushbackReader and while waiting for where it 'supposed' to be an EOF, I get the character 65535 and I'm wondering if that's normal.
Where is my EOF?!
Thank you.
...
I have a file of names and addresses as follows (example line)
OSCAR ,CANNONS ,8 ,STIEGLITZ CIRCUIT
And I want to read it into a dictionary of name and value. Here self.field_list is a list of the name, length and start point of the fixed fields in the file. What ways are there to speed up this method? (python 2.6)
de...
I'm wrapping up user space linux socket functionality in some C++ for an embedded system (yes, this is probably reinventing the wheel again).
I want to offer a read and write implementation using a vector.
Doing the write is pretty easy, I can just pass &myvec[0] and avoid unnecessary copying. I'd like to do the same and read directly ...