Questions tagged [fileparsing]

170 questions
0
votes
4 answers

Python: Reading files and editing its content

I got the following problem: I would like to read a data textfile which consists of two columns, year and temperature, and be able to calculate the minimum temperature etc. for each year. The whole file starts like this: 1995.0012 -1.34231…
wish0r
  • 1
0
votes
1 answer

What does invalid operand to binary expression mean?

I am new to C++ and want to parse a line from a file. I am using fstream and extractors. I keep receiving the following error in xcode: invalid operand to binary expression. I have no idea what this means. I looked long and hard and have not been…
user3286381
  • 146
  • 2
  • 14
0
votes
1 answer

Process huge text file in java web application via UI upload or read from directory

My web application needs to process a text file (size close to 200MB) for reading some relevant data. This text file needs to be processed monthly once, which means the contents of this text file varies monthly. I would like to know what is the best…
active_coder
  • 79
  • 1
  • 2
  • 13
0
votes
1 answer

Parsing through a large file using a pattern match, but it doesn't seem to match every case shown in the text

I am trying to parse through a large file that is very structured and pull out just the information i want to work with as represented by a tag at the beginning of the line. The size of the items i pulled out was not near large enough and it seems…
0
votes
0 answers

Parse tabulation-based data file php

I have several files to parse (with PHP) in order to insert their respective content in different database tables. First point : the client gave me 6 files, 5 are CSV with values separated by coma ; The last one do not come from the same database…
Flo Schild
  • 5,104
  • 4
  • 40
  • 55
0
votes
3 answers

Easiest way to get a specific section of a file path

I have a bit of a tricky one to solve. I have the need to extract a specific portion of a file path. I've extracted a zip file under a temp directory have have the full path to the file. Essentially what I would like is to get the difference…
user2643864
  • 641
  • 3
  • 11
  • 24
0
votes
2 answers

Read file while the file is constantly changing c#

I've written a c# application which is supposed to open a selected file, and read all the lines in it. The goal is to launch application A and redirect its output to file B, and then, using this new app, read the content of the file B and print it…
Idanis
  • 1,918
  • 6
  • 38
  • 69
0
votes
1 answer

XML header changing when used parsed with DOM

I am having an input xml file and trying edit some values and output xml file using DOM. But the header is getting changed in the output xml file. Input File header
0
votes
2 answers

C++ : istringstream looping twice

I'm currently working on a mock process scheduler. The code reads a text file of fake processes, and I need to be able to parse through the file. Text file is formatted as shown below. Pid Bst Arr Pri Dline I/O 1 1 850 …
0
votes
4 answers

Parsing pdf files using apache camel

How do i read/parse pdf files using Apache Camel. Any specific example or code snippets to parse the file ?? appreciate your help. Thanks in advance. …
siddu
  • 99
  • 1
  • 1
  • 6
0
votes
1 answer

Extract/Display SQL from crystal report

Problem: I have a crystal report file on a computer. I need to know how the crystal report queries a database. Background: The crystal report file was created 10+ years ago by a highly paid contractor. No one knows anything about how it was created.…
recursion.ninja
  • 5,377
  • 7
  • 46
  • 78
0
votes
2 answers

Creating a File Parser in C++

I am trying to create a parser class that will parse a file based on " " and place the words into a linked list. class FileReader { public: FileReader(char* file) { ifstream fout (file, ifstream::in); string hold; while…
Axel247
  • 23
  • 1
  • 3
0
votes
3 answers

Parsing File details for Windows FTP Server

I am trying to connect to FTP server through the c# code and I am getting the list of Files and directories. And that I am saving in a ArrayList(with all attributes). I can find the FTP Server type through the SYS ftp command. I have a regular…
marshalprince
  • 105
  • 4
  • 11
0
votes
1 answer

Find String in a text file

I try to find a specific String in a Text File. The file looks like this: 2, 1, 'Ausbau der techn. Anlagen' 2, 2, 'Extension des installations techniques' 2, 3, 'Estensione delle istallazioni tecniche' I try to find the text between the ''…
CollinG
  • 67
  • 3
  • 11
0
votes
4 answers

I need to parse a log file into multiple files based on delimiters

I have a log file which i need to parse it into multiple…