reading

How do I remove DB entries based on text file in SQL Server 2008 R2?

I have a list of words in a text file. Each word separated by a new line. I want to read all of the words, and then, for each word I have to look up the DB and remove rows that contain the words that were read from the text file. How do i do that? I am a newbie to DB programming and I guess we dont have loops in SQL, right? 1 - Read all...

Reading MS Excel 2007 file using PHP

Hi, I am trying to read excel 2007 file through php. I found one such example on PHP COM manual but it only works on windows system since COM objects require MS Excel to be installed. Since I have Linux machine that code doesn't work for me. Does anybody know the workaround for this? Due to some restrictions, I don't want to use any ...

boost.asio error on read from socket.

The following code of the client: typedef boost::array<char, 10> header_packet; header_packet header; boost::system::error_code error; ... /** send header */ boost::asio::write( _socket, boost::asio::buffer(header, header.size()), boost::asio::transfer_all(), error ); /** send body */ boost::asio::w...

Use LINQ to read all nodes from XML

I have a XML file, like this: <?xml version="1.0" encoding="utf-8" ?> <ROOT> <NAME> ItemName </NAME> <LIST> <ITEM> ListItem1 </ITEM> <ITEM> ListItem2 </ITEM> <ITEM> ListItem3 </ITEM> </LIST> </ROOT> How can I use LINQ to get all the ITEM...

Reading from a file in C++ and sending to socket until eof

I am trying to read from a file and write the output to a socket in C++. However when trying to compile my code I get two errors. One is #include <cassert> #include <arpa/inet.h> #include <cstdlib> #include <iostream> #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <errno.h> #include <...

Software development books are useful, but when to find the time to read them ?

Please treat this question as a very serious question. It is not an off-topic discussion, it is a way to collect advice on "when to find time to read software development books". For example I have 5 books in my "read-wish-list". When do I read them ? I mean I could force myself to use 1 hour during working hours, but this will last ...

Reading large text files to datagridview a filtering

I need to read line by line from text file (log files from server) and they are big (about 150-200MB). I am using StreamReader and its great for "little" files like 12MB but not for so big. After sometime it is loaded and it shows in my DataGridView but its huge in memory. I am using bindingSource.Filter on this DataGridView (like textbo...