Questions tagged [file-manipulation]
219 questions
-2
votes
2 answers
c# save my datatable into a [txt] file
I research all related title/topics to this problem but none of it seems to solve my problem.. it produces the 'Seperated_File.txt' but it is totally a blank text file. Thanks for your reply.
UPDATED (THE SOLUTION)
string[] lines =…

1aliff
- 435
- 2
- 5
- 15
-2
votes
1 answer
Script to move through multiple folders and copy only files with specific ext to another single folder
How to make a script (preferably in python, but I'm open for other ways as well) to parse through multiple subfolders and copy only files with certain extension (like .mp3 & .mp4 etc) to another folder in Linux/Ubuntu?
-2
votes
1 answer
python manipulating files, logic error in script?
I have a file that looks like this:
Chr-coordinate-coverage
chr1 236968289 2
chr1 236968318 2
chr1 236968320 2
chr1 236968374 2
chr1 237005709 2
chr14 22086843 2
chr14 22086846 2
chr14 22086849 2
chr14 …

Elisa Rosati
- 1
- 1
- 3
-2
votes
1 answer
Fstream c++ Code & Ercise problems
everyone I'm a student totally a noob in this of programming just know a litle web programming JS-HTML5, but nothing extraordinary.
I need help with some problems. Thanks if you help, and thanks if not. :D
*. Make a program in C++ that read a text…
-2
votes
2 answers
File manipulation in binary
Is it possible to convert a file text/image/mp3 to just the binary code thats its made up of for it then to be manipulated for example in python or whatever language. I poked around a bit online and Binary files were mentioned a lot but nothing was…

EdSainsbury
- 1
- 1
-2
votes
2 answers
Python - File manipulation using headings
How would I get python to run through a .txt document, find a specific heading and then put information from each line in to a list for printing? And then once finished, look for another heading and do the same with the information there...

Ashley Collinge
- 15
- 1
- 3
- 6
-2
votes
2 answers
Use Perl to manipulate file from within Octave
I have a need to manipulate a file from within Octave in the middle of a routine. At the moment I end this routine by saving a file from Octave with
save data_for_training -ascii train_data
and then manually, and tediously, edit the saved file and…

babelproofreader
- 530
- 1
- 6
- 20
-4
votes
1 answer
ofstream inconsistently creates/writes output file C++
I'm working with visual studio 2013. I want to output a vector of objects into several files. I am able to create the output file if I just print everything to a single file, but if I try to output to multiple files, nothing…

Jeff
- 695
- 1
- 8
- 19
-5
votes
2 answers
count letters and words in a file with python
The code should read the text from the file "input.txt" and then count the number of letters and words in each line, and then write the output to a new file named "output.txt"
I need help with writing the code for the above question.

ROHIT K F
- 91
- 3
- 9