Taking specific part of line

stackoverflow.com - 2012-03-24 17:48:33 - Similar - Report/Block

Hi I've got a log file containing trace routes and pings. Ive seperated these by using if (scanner.nextLine ().startsWith ("64 bytes"){} so I can work with just the pings for now. All I'm interested in from the ping is time=XX example data line = 64 bytes from ziva.zarnet.ac.zw ( icmp_seq=119 ttl=46 time=199 ms I have been...

What's the most efficient way to process a large text file line by line

stackoverflow.com - 2013-05-24 13:13:08 - Similar - Report/Block

I (think) I'm processing a text file line by line until I find a specific token; (Psuedo Code) Scanner scanner = new Scanner(new FileReader("myTextFile.txt"); while (scanner.hasNext() { boolean found = process(scanner.nextLine(); if (found) return; Some of the files are huge. Does this code actually scan the file line by line or does ei...

Macro to copy specific line from text file and paste into specific cell in excel

excelforum.com - 2013-02-05 15:35:37 - Similar - Report/Block

Hello everyone. I have relatively no experience in VBA but I need to find out how to accomplish the following: Copy a specific value in a specific row from a text file in my hard drive (the row is tab delimited and i may need to copy only the first field or second field) Paste it in a specific cell in a specific worksheet in an Excel file...

How to get a specific line with fgets() or fgetss()

stackoverflow.com - 2013-03-18 19:41:33 - Similar - Report/Block

I want to know how I would read a specific line (or even specific character) with fgets() or fgetss() In example; data.txt- this is data 1 this is data 2 this is data 3 How would I read only data 2? If it's possible, that is. Also, how can I only read the last line? Like if I were to use to write at the end of the file, it'd be the newe...

Python - How to find and save all word between two specific strings

stackoverflow.com - 2013-03-07 10:59:47 - Similar - Report/Block

while searching I found this threat . This is quiet close to what I need. Wich leads directly to my first Problem: The string I have is: line = I need to extract the values after the svg:x1= tags. So I tried print re.findall(r"(?<=svg:x1) (.*?) (?=svg:y1)", line) But nothing except [] is printed. The second Problem is I then tried somethi...

Turning a .jui file into a .java file, qt-jamba

stackoverflow.com - 2012-03-13 20:58:06 - Similar - Report/Block

I use this method (found on another question) to turn my .ui file into a .jui file. 1.Open the .ui file using a text editor (I used gedit) 2.Remove the first line of the file which looks something like this: <?xml version="1.0" encoding="UTF-8"?> 3.Delete the whitespace on the top of the file. 4.Modify this line of code : <ui ver...

How to combine lines in two files with condition in python?

stackoverflow.com - 2012-03-30 23:23:21 - Similar - Report/Block

I need to combine lines in two files, basing in the condition, that in the line of one of the files is a part of the line of the second file. A part of the first file: 12319000 -64,7357668067227 -0,1111052148685535 12319000 -79,68527661064425 -0,13231739777754026 12319000 -94,69642857142858 -0,15117839559513543 12319000...

Writing to a CSV with python without brackets

stackoverflow.com - 2012-04-24 05:01:00 - Similar - Report/Block

I am trying to write the below information to a csv file in this format: Tmin, -40 However my output looks like the below with the brackets and quotes around the -40: Tmin, ['-40'] My code is below. Basically I am searching through a csv file for a specific phrase, in this case "Tmin", and reading the entry 1 cell to the right. I then wan...

Trying to format lines in file with python

stackoverflow.com - 2013-03-18 18:46:22 - Similar - Report/Block

I have been trying to rewrite a text file with python, where I go into a file, grab each line, append an additional string onto the line, then rewrite the newly appended line to the text file. The problem I am having is that this newly constructed text file does not format correctly. The file contains rows, where each row contains three n...

Edit text file programmatically

stackoverflow.com - 2011-02-25 08:36:44 - Similar - Report/Block

How can we modify a text file from android, such as append at the end of the file. clear data at any intermediate position and also blank lines in it. Is there any option to delete a particular line from the text file, I read so many tutorials regarding this all have mentioned to create a temporary file and asked to copy the contents from...

App_Code Load Error in WebApp

stackoverflow.com - 2012-03-14 15:38:45 - Similar - Report/Block

Earlier this week, recent deployments of our ASP.NET 2.0 web application started to throw the following error at unpredictable (not easily reproducible) times: Parser Error Description : An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify...

Run Cudamat in pthon code on Windwos7 64 bits

stackoverflow.com - 2013-04-21 13:36:43 - Similar - Report/Block

this output comes when i run the python code with cudamat Traceback (most recent call last): File "E:\GPU\speechDBN_using_CUDAMAT\speechDB N_using_CUDAMAT\speechDBN.py", line 6, in from speechDBNtools import * File "E:\GPU\speechDBN_using_CUDAMAT\speechDB N_using_CUDAMAT\speechDBNtools.py", line 7, in import cudamat as cm File "E:\GPU...

evolveStar Join

Skip line in file - batch command

stackoverflow.com - 2013-04-10 03:06:40 - Similar - Report/Block

I have a text file, containing a set of get commands, so that I can download files from a sftp server (the text file is read using cmdFile=file.txt). If there is a file that is not available in the server, but the filename is there in the text file, then I need to skip that line and move to the next line of the text file, so the next avai...

Reading each line of text file and storing into columns in a CSV file using Perl

stackoverflow.com - 2013-04-19 11:03:55 - Similar - Report/Block

I have a text file where file content has delimiter as space in beginning. Its like below: First line doesn't have any space in beginning. Second line has 2 space. Third line has 4 space in the beginning. Fourth line has 6 spaces in the beginning. Again this pattern is repeated till end of file in a random way as shown in text file eg bel...

Read integers from file - line by line

stackoverflow.com - 2013-04-20 17:12:31 - Similar - Report/Block

How can I read integers from a file to the array of integers in c++? So that, for example, this file's content: would become: int *arr = {23, 31, 41, 23}; I actually have two problems with this. First is that I don't really know how can I read them line by line. For one integer it would be pretty easy, just file_handler >> number syntax...

.NET File.WriteAllLines leaves empty line at the end of file

stackoverflow.com - 2012-07-27 14:00:16 - Similar - Report/Block

When I'm saving content of the String[] array with System.IO.File.WriteAllLines, at the end of a file is always left a blank line. For example: System.IO.File.WriteAllLines(Application .dataPath + "/test.txt",["a", "b", "c"]); Produces file (without underscore): There was already such topic: Empty line in .Net File.WriteAllLines, is a bug?...

Reading lines from two files in one while loop

stackoverflow.com - 2012-03-27 09:47:08 - Similar - Report/Block

I have a file, file1.csv containing: text. I am using while read line to cycle through each line, e.g.: while read line; do echo $line done < file1.csv I have another file, with an identical number of lines, called file2.csv The data each line corresponds to data in the first file of the same line number. How can I modify the whi...

urllib3 connecting error error_proto 150 in python

stackoverflow.com - 2012-03-23 05:06:08 - Similar - Report/Block

Im using this code to connect and to get list of directory from a ftp. It works but in some computer I receive ftplib.error_proto: 150. Whats the meaning of this error? Is this error due to anti-virus or permission issues? My os is windows xp. http_pool = urllib3.connection_from_url(myurl) r1 = http_pool.get_url(myurl) print r1.data File...

c# StreamReader and TextReader

stackoverflow.com - 2012-05-12 13:26:59 - Similar - Report/Block

I am trying to read from a pbx file using StreamReader, edit the contents and display the contents to a new file using TextReader in c#. This is my first developement task in a c#. I studied java at uni and my new job uses c#. Basically I have to read through a list of records contained in a pbx file from a phone system. These records how...

Android .properties file of library project overwritten

stackoverflow.com - 2013-02-28 10:19:57 - Similar - Report/Block

I created a library project and store my properties in a .properties file (release.properties and test.properties). I access them using a Properties object, which file I access depends on a boolean (DEBUG true/false). However, if I create an app-project that uses my lib-project, and if for this app-project ONE property value differs from...

How should I manage platform specific code in my Ruby gem?

stackoverflow.com - 2011-03-14 03:16:46 - Similar - Report/Block

I'm writing a gem that will have a platform specific (OSX, Windows and Linux) portion, as well as a platform independent portion. Each platform specific section will probably also depend on other platform specific gems. I'm not very sure how to organize this. Should I write a shared gem for the platform independent part, then three gems f...

Getline in c++ ifstream causing unwanted behavoir?

stackoverflow.com - 2012-03-15 22:53:19 - Similar - Report/Block

I think I have a problem with the getline function giving me an error to do with charcters. Array Header: public: void read(ifstream& fin); Array cpp: static string myArray[5000]; void read(ifstream& fin) string line; int arrayIndex = 0; if (fin.is_open()) //Checking if the file can be opened { while (!...

py2exe packaged wxPython application complains about mystery DLL

stackoverflow.com - 2012-03-30 06:05:02 - Similar - Report/Block

When I package a minimal Python 2.7.1/wxPython program (Hello World) with py2exe with the most basic "configuration" and run it on a pristine Windows 7 x32 virtual machine, save "Microsoft Visual C++ 2008 Redistributable Package (x86)" installed, I get the unhelpful error: Z:\>z:\wxhello\wxhello.exe Traceback (most recent call last):...

Long SQL file runs SQL Server out of memory (22,000 lines)

stackoverflow.com - 2012-04-20 22:20:30 - Similar - Report/Block

I have a file of a file that is about 22,000 lines long. It's generated by something else, but basically just contains one update statement per line. I get this error when I run the file in SQL Server Management Studio. There is insufficient system memory in resource pool 'internal' to run this query I think I just need to split this q...

How to print part of a list on a new line in Haskell

stackoverflow.com - 2013-05-05 00:07:56 - Similar - Report/Block

This may be a silly question, but I'm very new to Haskell. (I just started using it a couple of hours ago actually.) So my problem is that I have a list of 4 elements and I need to print two on one line and two on a new line. Here's the list: let list1 = ["#", "@", "#", "#"] I need the output to look like this: I know that i could use the...

Perl Command Line- If string found replace next line

stackoverflow.com - 2012-05-11 20:41:47 - Similar - Report/Block

I am a total Perl noob and trying to figure out if this thing can be done. I have a text file which contains data like formula names, and then the formula in the next line (single line) like so - Formula Name = abc formula for TAT count(a)+500 The formula name is unique. I need to search for the formula name, and then replace the formula...

Notepad++ Selecting certain region in text

stackoverflow.com - 2012-02-27 03:15:35 - Similar - Report/Block

I've long list of text,text line 1 to line 1000000000, i would like to ask, let say i would like to make selection and copy to specific line from line 100 to 1000..only, is it possible and how to that in notepad++.. thanks...

NSIS Replace Line in File: Never reads file & never identifies the correct line

stackoverflow.com - 2012-05-17 07:43:26 - Similar - Report/Block

I am attempting to replace a line in a file. My Problem: I can never find the line I am looking for in a file. My function finds the line I want to replace but doesn't correctly identify it as the one I want to replace or maybe it fails to open the file(the path to the file is correct). If you test the my function with the following simp...

Header file issues

stackoverflow.com - 2013-04-21 09:35:59 - Similar - Report/Block

I'm writing a multi-file program in C++ (School project). Yesterday I ran into a rather odd issue. When I included one specific header file in my program, it refuses to compile. It gives me the error "missing ; before *" which indicates some of my class declared in other headers became undeclared or something like that. The header file I...

Get variable from PHP file using JQuery/AJAX

stackoverflow.com - 2012-04-26 23:06:48 - Similar - Report/Block

This is my first post here and I hope that someone will be able to help me. For the past week I have been working on a project of mine. Apparently, I have stuck with the last part. So basically, I have an AJAX chat and when I submit a line I send (using a Post method) the whole line to be analyzed (to a file named analysis.php). The chat...

Python unicode write to file crashes in command line but not in IDE

stackoverflow.com - 2012-03-22 13:51:52 - Similar - Report/Block

I'm having a problem wherein my Python 2.7.3rc2 code runs fine through an IDE (Aptana Studio 3 with PyDev), but crashes when I either double-click the .py file or try to run it from the Windows command line. The problem line is where I try to write a string containing unicode characters to a file. The IDE has no problem with it, and write...

Autowrite string to next line from combobox to textfile

stackoverflow.com - 2013-03-22 01:58:49 - Similar - Report/Block

I'm getting this problem in VB.NET when trying to passing string from combobox to text file and this code below only produce single line in the text file. My.Computer.FileSystem.WriteAllText(Appl ication.StartupPath & "\setting.ini", cboSrvname.Text, True) I want to make it autowrite to the next line, but didn't know the most efficient way...

WinMerge - Is there a way to line up shifted/moved code blocks?

stackoverflow.com - 2013-03-20 15:57:37 - Similar - Report/Block

When using WinMerge I am looking at a file that has had a block of code inserted into a function which causes the rest of the file to be out of sync in the comparison. Mine is much more complex but essentially the same as the simple example below: FILE 1 FILE 2 1 int main() { int main() { 3 int a = 3; int a = 3; 4 a += 5; for(int i = 0;...

Java: Reading file in two parts - partly as String and partly as byte[]

stackoverflow.com - 2013-02-27 05:14:17 - Similar - Report/Block

I have a file which is split in two parts by "\n\n" - first part is not too long String and second is byte array, which can be quite long. I am trying to read the file as follows: byte[] result; try (final FileInputStream fis = new FileInputStream(file)) { final InputStreamReader isr = new InputStreamReader(fis); final BufferedReader...

How to adjust SVN settings to convert line endlings on Windows?

stackoverflow.com - 2012-04-15 19:00:52 - Similar - Report/Block

I need to use SVN on Windows and would like to set it up such that line endings are always checked out in Windows style and always committed in Unix style, regardless which repository is used. Is this possible or will I have to write a configuration file for each repo? If I have to write a config file to each repo, where do I put it, what...

python program to add all values from each line

stackoverflow.com - 2013-06-06 13:45:26 - Similar - Report/Block

im writing a python function to do the following, add numbers from each line, so i can then find the average. this is what my file looks like: -2.7858521 -2.8549764 -2.8881847 2.897689 1.6789098 -0.07865 1.23589 2.532461 0.067825 -3.0373958 Basically ive written a program that does a for loop for each line, incrementing the coun...

android: showing only part of page using webview

stackoverflow.com - 2012-05-17 15:18:09 - Similar - Report/Block

I'm trying to show only part of page in an WebView, eg. from 400th line to 600th line of html code.(that part contains data frame on webpage i want to show) Is it possible? How? Thanks in advance!...

Считывание данных из файла - C для начинающих

cyberforum.ru - 2013-03-20 11:07:25 - Similar - Report/Block

В файле funс.dat есть два столбца данных надо считать первый столбец в один массив, второй столбец в другой массив. Вариант когда в файле был 1 столбец данных делал так: Код: static const char filename[] = "func.dat"; FILE *file = fopen ( filename, "r" ); if (file != NULL) char line [128]; /* or other suitable maximum line size */ i...

Движение подъемника вправо-влево с клавиатуры , и на кнопки вверх-вниз поднимать и опускать ящик - Turbo Pascal

cyberforum.ru - 2013-02-27 07:02:03 - Similar - Report/Block

Код: Program Podemnik; uses Crt, Graph; var GM, GD: Integer; Begin ClrScr; InitGraph(GD,GM,' '); textbackground(15);clrscr; setcolor(0); line(100,190,80,230); line(80,230,60,230); line(60,230,60,260); line(60,260,80,260); line(110,260,140,260); line(170,260,190,260); line(190,260,190,230); line(190,230,160,230); line(160,230,150,19...

создать файл в корне диска "С" - Pure Basic

cyberforum.ru - 2013-03-19 18:59:29 - Similar - Report/Block

Код: If CreateFile(0, "С://Text.txt") ; we create a new text file... For a=1 To 10 WriteStringN(0, "Line "+Str(a)) ; we write 10 lines (each with 'end of line' character) Next For a=1 To 10 WriteString(0, "String"+Str(a)) ; and now we add 10 more strings on the same line (because there is no 'end of line' character) Next CloseFile(...


Fill out the form you see below. Registration is free, fast and simple.
If you are already registered, sign in page login.

Web Site :
Required Field
First Name :
Required Field
Last Name :
Required Field
Email :
Required Field
Sex :
Required Field

evolveStar.com is free for ever !

evolveStar.com provides a search engine that allows you to gather information to write their own blog.

evolveStar.com enhances the sources displaying the logo of the site.

If you want to remove your site or you believe a site listed infringes copyright, please report it to: info@evolvestar.com

Specifies the subject copyright violation and the url of the page

evolveStar.com respecting the law DMCA (Digital Millennium Copyright Act) will immediately remove whatever its merits.

Next will be effectual and relevant checks.

Who We Are Partner Advertising Contacts Privacy terms Help & FAQ

© Copyright 2010-2017 Fabrizio Fichera. All rights reserved.