Questions tagged [file-processing]

333 questions
0
votes
1 answer

Process files from postman or UI in Node JS, without storing them in local storage

I am using multer npm library to read files from postman and I am getting the file and its details in my node js code(checked via logging req.file), but my concern is I don't want the file to get stored in my local machine, I just want to extract…
0
votes
1 answer

How to use the FORMAT parameter in Workbooks.Open method?

The general syntax for the Workbooks.Open method in VB.net to open an excel file is: expression.Open (FileName, UpdateLinks, ReadOnly, Format, Password, WriteResPassword, IgnoreReadOnlyRecommended, Origin, Delimiter, Editable, Notify, Converter,…
0
votes
2 answers

Obtaining the address of a cell from a CSV file in C++

I have CSV file data in the following format: Name, Quantity, Price xyz, 30, 300 abc, 25, 200 Sample of data contained in CSV file: Name Quantity Price xyz 30 300 abc 25 200 I need to access specific cells of price and quantity for…
solopolo
  • 17
  • 5
0
votes
1 answer

python ftplib ftp.rename() throwing error in some servers

Just started working on some python scripts with FTP and SFTP. SFTP seems to work fine in all scenarios, but when the script tries to rename a file using FTP, it works on some servers and it throws errors in some. I am currently working on python…
Demolition
  • 138
  • 1
  • 1
  • 10
0
votes
0 answers

How to run all files in a directory in Python

I want to draw a graph based on a text file read from a directory. I have figured out a way draw the graphs by reading one file at a time but I now want to open all files in the directory so that all the graphs can be drawn at once. When I run this…
Jeff
  • 355
  • 2
  • 9
0
votes
0 answers

C file processing assignment question, why is this error coming up?

I am currently trying to finish an assignment and cannot seem to get my code running completely. Not entirely sure what is going on with it as our teacher is not much help in class. Any help or suggestions would be greatly appreciated. #include…
0
votes
0 answers

Reading and Combining thru Writing multiple CSV files with restore point

I have to read many existing CSV files on a External Drive and combine the in Sequence (Sequencing is Critical) with restore point and write to output.csv on same External Drive in different path. Example A.CSV, B.CSV and so on to Output.csv , I am…
TechiRA
  • 29
  • 3
0
votes
1 answer

In C# can we update a text file line with new record while reading the same file

I have .text File (with 400K rows). I need to read that file and If i find (AB,CB,DE,FG) in certain position (35, 2) in each row, I need to replace that with new value which I already have in dictionary object. this is my dictionary with list of…
Shankar
  • 71
  • 1
  • 7
0
votes
0 answers

Why my char array's elements are changing outside the for loop?

So I tried to get the codewords from a file and put them into my words array. When I print them inside the for loop I get all the codewords from the .txt file but when I try to print one of the elements of my array, it always gives the last line…
0
votes
2 answers

Making two columns by skipping a string in Python?

For example, let's say I have a file called test.txt, the content is as follows, thousands of strings under each other. I will come one day. What did you do. I will go home. OK, I'll come too. I'm waiting then. I will come. What I want is that the…
0
votes
1 answer

file processing and word sort

Im learning how to look through txt files using java programming, and im wondering why my code is not working. I am using a scanner to take user input, and then using that user input to look through the entirety of Moby Dick, and return the number…
ZZBowzer
  • 1
  • 1
0
votes
3 answers

How to print text as italicized on a text file?

I'm making a program that asks the user to input citation info (i.e. author names, article title, journal title, volume number) as strings. It will then process that info to convert it into the proper APA 7th edition citation and ultimately print…
Ex_ME
  • 11
  • 1
0
votes
0 answers

How to save my trained Random Forest model and apply it to test data files one by one?

This is a long shot and more of a code designing sort of ask for a rookie like me but I think it has real value for real world applications The core questions are: Can I save a trained ML model, such as Random Forest (RF), in R and call/use it…
ML33M
  • 341
  • 2
  • 19
0
votes
2 answers

How to merge multiple files once multiprocessing has ended in Python?

In my code, multiprocessing Process is being used to spawn multiple impdp jobs (imports) simultaneously and each job generates a log file with the dynamic name: '/DP_IMP_' + DP_PDB_FULL_NAME[i] + '' + DP_WORKLOAD + '' + str(vardate) +…
0
votes
1 answer

Read and filter column names from file using Python

I was new to python, my requirement is to fetch the column names from the file. File may contains following types of contents: OPTIONS ( SKIP=1) LOAD DATA TRAILING NULLCOLS ( A_TEST NULLIF TEST=BLANKS, B_TEST …
kaviya .P
  • 469
  • 3
  • 11
  • 27