read

jquery - Read a text file?

I have an html file that I'd like to open and read from, but I'm not entirely sure how to do that... Basically, it's a fairly large file (big.html), and, in a separate file (titles.html), I have some jquery code that I'd like to use to find certain elements (namely, h2 tags) and get the inner text from those tags and write just that text...

Read from one large file and write to many (tens, hundreds, or thousands) files in Java?

I have a large-ish file (4-5 GB compressed) of small messages that I wish to parse into approximately 6,000 files by message type. Messages are small; anywhere from 5 to 50 bytes depending on the type. Each message starts with a fixed-size type field (a 6-byte key). If I read a message of type '000001', I want to write append its payloa...

Assembly INT 13h - read disk problem

Hi to all I need to be able to write a program in assembly to read the first sector of a disk (The MBR) and write it to a floppy disk or at least show the data. I understand that INT 13h and 25h do not work in the windows protected mode and i even tried my code in Dos but the dos system hangs when I run the program. This is the code: ...

reading stdin multiple times in bash

Hi, I'm trying to read from stdin multiple times in a shell script, with no luck. The intention is to read a list of files first (which are read from the stdin pipe), and then read twice more to get two strings interactively. (What I'm trying to do is read a list of files to attach in an email, then the subject and finally the email b...

Is it possible to stream Matroska files?

So I want to broadcast .mkv file. I'm going to broadcast live video. So I need to know is it possible (anyhow) to read unfinished .mkv files? Because i know that Matroska is xml and you simply will not be able to read unfinished xml. Update: now I know - it is possible to read unfinished XML. But it does not solve the question if it is ...

Read instructions being executed

As the title suggests, is there any way to read the machine code instructions as/after they have been executed? For example, if I had an arbitrary block of C code and I wanted to know what instructions were compiled and executed when that block was entered then would there be a way to do that? Thank you in advance for any pointers on the...

read text file into custom data class

I have a text file which contains columns of data that are either integer, double or string. I want to read each row of data into my own record class. I know the column data types beforehand, so I am parsing a text file row something like the code below (I typed it out, so don't complain there are errors). I didn't list all of the col...

pdf read pages to BitmapData in AS3

I’m starting a project in flash AS3 and my objective is to load any pdf file into my flash project and convert all its pages to BitmapData... I am familiar with byteArray and I know I must access the pdf in binary level but I don’t know where to start and how to start. I was hoping if you could give me some insight? Maybe a suggestion ...

Help me to read .pdb file

Hi Guys... I have a lot of file in .pdb format, some of them downloaded, but until now i can't using or read what the inside, so i looking for how to read, view the .pdb file format from MS Windows XP. any of you that's may know how to open it? For any input would be help me and Many Thank You 1st. ...

How to import .class file in jsp page which is not in standard library?

I would like to read excel file in java. For that no classes are provided by java standard library. I have downloaded required classes but I am not able to import them. One solution is jsp:usebean but they are near about 300-400 classes so I can't use usebean. Please suggest another solution. ...

How do i read a notepad file in java?

im trying to create a restaurant system that will create food items and such from a menu. ill be learning jdbc soon and im sure that would help but for now i think the simplest way is too create my menu in notepad. whats the best way to line up and read from a notepad file like a menu. please try speak clearly, im not exactly sure of ...

Bash arrays: Need help with white space

I'm trying to create an array in bash from a file with the following sample format: data, data, interesting data, data, more interesting The way I'm populating the arrays: read -r -a DATA1 <<< $(cat $FILE | awk -F, '{ print $1 }') read -r -a DATA2 <<< $(cat $FILE | awk -F, '{ print $2 }') read -r -a DATA3 <<< $(cat $FILE | awk -F, '{...

Reading specific lines only (Python)

I'm using a for loop to read a file, but I only want to read specific lines, say line #26 and #30. Is there any built-in feature to achieve this? Thanks ...

Nasty unicode and C++: Easy way to read ASCII/UTF-8/UTF-16 BE/LE text file

Hello everyone, sorry if the question is stupid and has been asked thousands of times but I spent a few hours googling it and could not find an answer. I want to read in text file which can be any of these: ASCII/UTF-8/UTF-16 BE/LE I assume that if file is unicode then BOM is always present. Is there any automatic way (STL,Boost or so...

(IPHONE) Big confusion to read/write the same file from resource folder

hi all, i've read several thread for this question but unfortunatly not found the answer to my problem :( i have a xml file in resource folder, and i need just to re-write the same file; the app logic is: display data loaded from file add new data to the same file for read a file my code is: NSString *filePath = [[NSBundle mainBund...

How to read from file, which name is "-"

Hello, how to read content of a file which name is "-" (dash, not stdin)? ...

How can I read Excel files in Perl?

I am looking for some examples/advice on how to write a Perl script to read data from an excel file then use the data read in (as a string hopefully) and pass it to another Perl file (as an argument). The goal is to have a table in which the user can type some data (ftp destination or filename) into the table. Then my program will grab...

read and write thread using a single tcp socket

Hi, I'm using a C socket library I found online to implement a tcp socket data transfer program. Is it possible to make 2 threads share the same socket connection (1 read and 1 write), and have the read thread perform a blocking read and recv data while the write thread constantly writes data? All of the example socket programs I've se...

jquery read xml not function

clearly i must have overlooked something. here is my script, and below that is the data. $("#kenteken").blur(function(){ var sRegistrationNr = $(this).val(); var sChassisNumber = false; $.ajax({ type: "GET", url: "/activeContent/warrantyClaim/ajax-xml-response.php", data: "return=auto&kenteken="+sRegistrationNr, dat...

Java, read from file throws io exception - read error.

Hello all, Im reading from a file (data.bin) using the following approach - fis1 = new FileInputStream(file1); String data; dis1 = new DataInputStream(fis); buffread1=new BufferedReader(new InputStreamReader(dis1)); while( (data= buffread1.readLine())!=null){ } Now im getting the io exception of read error. Now im gue...