Questions tagged [file-manipulation]
219 questions
0
votes
0 answers
Convert base 64 file to text or pdf file in r
I am using R, version 3.3.2.. I have downloaded base64 file from API. Here is output (base64) file (all file have 27 pages so I put just liitle part of it):
list(structure(list("584959666b2e5f32bc43fad1", "584959666b2e5f32bc43fad1.pdf",
91572L,…

Mislav
- 1,533
- 16
- 37
0
votes
1 answer
How can i remove other lines from a csv formatted string using PHP?
Hi I have a string which is in a csv format,
Lee.leviste,112.198.77.139:44324,12872826,82159116,Thu Dec 15 16:30:18 2016
jelozero23,112.198.78.211:32704,157357727,2952656671,Thu Dec 15 10:59:48…
0
votes
1 answer
How to print a struct using a file in C
The data file has weather data for Miami and Toronto (city name, the date, temperature, precipitation). I need to create a function that prints a struct but the values are in a .txt file. This is the file:…

John Smith
- 129
- 1
- 3
- 12
0
votes
1 answer
Python program to change unicode characters to entities
This is a program to change the unicode symbols to their respective entities from file x.input and the output should be placed in y.output. However, the program doesn't do that and only creates a copy of the file.
I have both Python27 and 35…

user1469502
- 3
- 3
0
votes
2 answers
Substitute key's occurrencies in a file with corresponding value in another file
I have 2 big files: the first one (10GB) contains text with occurrencies of keys in a specific format {keyX} and the second one (3GB) contains the mapping between keys and their values (45 milion entries).
file1:
Lorem ipsum {key1} sit amet,…

Andrea Bergonzo
- 3,983
- 4
- 19
- 31
0
votes
0 answers
How can I concatenate multiple files of different file formats into one such that all source files open when I open the final file?
I am working on is creating a Bitmap image which if opened changes the desktop Wallpaper to itself. I have a Bitmap image and VBS script which sets it as the wallpaper. I want to merge them together to a single file which when opened sets the image…

Rahul Chhabra
- 11
- 7
0
votes
2 answers
Reading data from files in C
So I have a big text file with data in it and I would like to rearrange it. The data has a combination of integers and floats per each line but I'm only interested in grabbing the first integer, which is either a 1 or 0, and putting it at the end of…

user252836
- 49
- 9
0
votes
1 answer
Writing file to a sharepoint 2007 server with node.js
I know how to write file locally with fs.writeFile(). But how do I write/send a text file to sharepoint folder on a different server via node.js?

davidx1
- 3,525
- 9
- 38
- 65
0
votes
1 answer
How do I call rename successfully from a bash script on Ubuntu?
I have a bash script #!/usr/bin/env bash that is called part of a make process. This script creates a directory with the files pertinent to a realise and then tars them up. I would like to take a copy of the directory and rename some of the files…

TafT
- 2,764
- 6
- 33
- 51
0
votes
2 answers
Appen bytes to a binary file in visual c++
I am trying to append some bytes to a binary file in visual c++
// ConsoleApplication1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include
#include
#include
#include…

qed
- 22,298
- 21
- 125
- 196
0
votes
1 answer
Using powershell to merge two folders and rename files based on source folder
I have a set of files like this:
2015_09_22
|____ foo
|____ common.ext
|____ common.1.ext
|____ common.2.ext
|____ common.3.ext
|____ bar
|____ common.ext
|____ common.1.ext
|____ common.2.ext
I want to merge them…

Matt
- 5,478
- 9
- 56
- 95
0
votes
2 answers
Extra bytes when generating text file
I'm trying to generate a text file that has 50 lines, each line consisting of 50 spaces. However, every few lines, 9 or 10 extra bytes gets added to the file.
#include
#include
using namespace std;
void InitializeCanvas() {
…

rhynodegreat
- 185
- 1
- 2
- 5
0
votes
1 answer
How to associate a 4-char OSType / NSFileHFSTypeCode with a particular UTI
I am writing a MacFuse plugin, and would like finder to use the appropriate icons & launch the appropriate app when a file is opened.
It is not possible for me to add an extension to the file, so my only other option in Snow Leopard is the…

Padraig
- 1,569
- 2
- 15
- 21
0
votes
1 answer
NPAPI alternative for live file editing
I currently have a web app, which allows users to download files to their computers, edit them with their own editors and automatically sends them back to server upon saving and sends some extra data when closing the file. It utilises a Java applet…

Elwhis
- 1,241
- 2
- 23
- 45
0
votes
2 answers
In-memory XML manipulation
I'm trying to do a find and replace in an OpenXML word document which I've openened into a MemoryStream.
using (WordprocessingDocument _document = WordprocessingDocument.Open(_ms, true))
{
var placeHolder = _document.MainDocumentPart.Document
…

fearofawhackplanet
- 52,166
- 53
- 160
- 253