To use data produced by another application. The ability to import data is very important in software applications because it means that one application can complement another. Many programs, for example, are designed to be able to import graphics in a variety of formats.
Questions tagged [file-import]
76 questions
6
votes
1 answer
Getting The file 'xxx" couldn't be opened because you don't have permission to view it when importing
I am very new using Swift and SwiftUI and I'm trying to write and iOS app that reads a folder, calculcate hash for each file, and then copy them to an external drive.
For now I'm trying to import one file and calculate its hash. However, I always…

Sydney Writer
- 63
- 4
4
votes
0 answers
Import a file with pound symbols (£) in R
this was expected to be much easier but I cannot get it done in R. I have a very simple file which contains some information stored as strings. There is also a currency tab, which contains characters like "$" or "£".
I use the following to import…

user3032689
- 627
- 1
- 10
- 23
4
votes
1 answer
read.csv parameter stringsAsFactors not working?
Based on the documentation read.csv, the parameter stringsAsFactors, when set, should cause quoted data values to be interpreted as factors. Consider the following data file, which we will call test.csv.
"a",b,c
"1",2,3
"3",2,3
When I try to…

merlin2011
- 71,677
- 44
- 195
- 329
3
votes
2 answers
NextJs load multiple files with loadFilesSync or glob,
I am trying to load multiple files with @graphql-tools/load-files I have tried with glob, too, but no success there as well. My folder structure is like this:
/
/.next
/pages
/pages/api
/pages/api/graphql -> there I have an…

Alex
- 1,571
- 3
- 13
- 16
3
votes
1 answer
I have a .dta file which has variable labels for each variable. Once imported to R, how can I view these labels?
I imported a .dta (Stata file format) into R, but it looks like the variable labels did not get imported along with the variable names.
Using foreign::read.dta, I tried labels(df), but that only gives me the variable names; and str(df$var) is also…

laura bmw
- 41
- 5
2
votes
0 answers
FileImporter SwiftUI
I m experiencing something weird with my File Importer in SwiftUI.
Here is the code I´m using to invoke the file importer :
.fileImporter(isPresented: $showFilePicker, allowedContentTypes: [.data], onCompletion: { result in
print(result)
})
The…

Daniel Jorge
- 51
- 3
2
votes
2 answers
Using Keras APIs, how can I import images in batches with exactly K instances of each ID in a given batch?
I'm trying to implement batch hard triplet loss, as seen in Section 3.2 of https://arxiv.org/pdf/2004.06271.pdf.
I need to import my images so that each batch has exactly K instances of each ID in a particular batch. Therefore, each batch must be a…

magmacollaris
- 79
- 7
2
votes
0 answers
" ch.setopt(ch.HTTPPOST, data.items()) TypeError: invalid arguments to setopt" i am getting this error
When I put all my authorization data into
data = {
'token': 'XXXXXXXXXXXXXXXXXXXXXXXXXXX',
'content': 'file',
'action': 'import',
'record': '',
'field': 'record_id',
'event': '',
'returnFormat': 'csv',
'file': '(pycurl.FORM_FILE,…

Himanshu Vaishnav
- 21
- 1
2
votes
1 answer
How do I read a RAW RGB image in MATLAB?
I am trying to properly convert a RAW image so that I can view it in MATLAB. Image can be downloaded here. I am using the version of the code provided in How can I read in a RAW image in MATLAB?
However, it is not working properly for me. Here is my…

Anton Savelyev
- 762
- 7
- 22
2
votes
1 answer
Unable to import pages and numbers documents with UIDocumentPicker
I'm developing an app that provides the ability to store cloud documents.
This app will have the option to import data from other apps using the new UIDocumentPickerViewController.
Everything works fine and I'm able to show the picker view…

jiraya85
- 428
- 1
- 5
- 26
2
votes
3 answers
How can I change the encoding of a text file that is delimited by pipe and quotes so I can read it into R?
I want to read data from a text file into an R dataframe. The data is delimited by pipes | and also has quotes around the values. I've tried some combinations of read.table but it's importing everything into a single field as opposed to splitting…

user3302483
- 845
- 4
- 12
- 20
1
vote
2 answers
How to use BCP on a hosted SQL Server/IIS environment? What is an alternative to BCP
I have a web application built in ASP and initially hosted on my own local server - Win 2008, IIS 7.0, SQL Server 2008.
I then bought a discountASP.Net hosting account for website + database.
The web application takes a file from a folder under the…

Moiz Tankiwala
- 6,070
- 7
- 38
- 51
1
vote
4 answers
Import flat file to SQL server using C#
I want to make a program in C# that imports two types of files to SQL Server: tab delimited and fixed columns. Actually, I need to download a file every day and import that file into my database. I could make a console app with batch script. I saw…

Makah
- 4,435
- 3
- 47
- 68
1
vote
1 answer
Importing Data from an .SRT-FIle into Excel
I am struggling with something I think it is really easy to fix... but I still don't get it done.
Please keep in my mind, I am not a pro at programming.
So I build myself an Excel template which converts .SRT files into a script format.
The…

ManuelPieperDrums
- 13
- 2
1
vote
0 answers
How to add/import a .kt file as a source in main.kt file in idle kotlin (gradle build) project
I'm learning kotlin recently and have experience with python and pycharm. I'm having some problems on importing a file as a source root in IntelliJ IDE.
my problems are,
If I keep my custom .kt file say calculation.kt in the same folder as main.kt…

Shams313
- 71
- 6