Tag: file

60 votes
9 answers
826 views
Is it possible to define more than one function per file in MATLAB, and access them from outside that file?

When I was studying for my undergraduate degree in EE, MATLAB required each function to be defined in its own

avatar
Majorie
0 1 0 9
asked 07 September, 2021
58 votes
16 answers
1K views
How to reload .bashrc settings without logging out and back in again?

If I make changes to .bashrc, how do I reload it without logging out and back in?

avatar
Freida
0 1 0 9
asked 07 September, 2021
49 votes
14 answers
3K views
How can I save application settings in a Windows Forms application?

What I want to achieve is very simple: I have a Windows Forms (.NET 3.5) application that uses a path for read

avatar
Karolyn
0 1 0 9
asked 07 September, 2021
59 votes
12 answers
2.3K views
Read .mat files in Python

Is it possible to read binary MATLAB .mat files in Python? I've seen that SciPy has alleged support for

avatar
Majorie
0 1 0 9
asked 07 September, 2021
62 votes
3 answers
2K views
How to read the last MB of a very large text file

I am trying to find a string near the end of a text file. The problem is that the text file can vary greatly i

avatar
Charis
0 1 0 9
asked 07 September, 2021
53 votes
27 answers
1.4K views
ERROR ITMS-90164/90046: Invalid Code Signing Entitlements

Note: I'm developing using Xamarin. Similar question posted in Xamarin Forum here I'm creating an a

avatar
Lynette
0 1 0 9
asked 07 September, 2021
53 votes
19 answers
3.1K views
Writing files in Node.js

I've been trying to find a way to write to a file when using Node.js, but with no success. How can I do t

avatar
Majorie
0 1 0 9
asked 07 September, 2021
55 votes
12 answers
2.4K views
Do I commit the package-lock.json file created by npm 5?

npm 5 was released today and one of the new features include deterministic installs with the creation of a pac

avatar
Dusty
0 1 0 9
asked 07 September, 2021
55 votes
13 answers
559 views
How to delete a file or folder in Python?

How do I delete a file or folder in Python?

avatar
Boyd
0 1 0 9
asked 07 September, 2021
47 votes
19 answers
1.3K views
How do I copy a file in Python?

How do I copy a file in Python? I couldn't find anything under os.

avatar
Robt
0 1 0 9
asked 07 September, 2021
48 votes
30 answers
2.2K views
How do I check whether a file exists without exceptions?

How do I check whether a file exists or not, without using the try statement?

avatar
Patsy
0 1 0 9
asked 07 September, 2021
55 votes
13 answers
2.1K views
Sending multipart/formdata with jQuery.ajax

I've got a problem sending a file to a serverside PHP-script using jQuery's ajax-function. It's

avatar
Robt
0 1 0 9
asked 07 September, 2021
55 votes
26 answers
2.9K views
jQuery Ajax File Upload

Can I use the following jQuery code to perform file upload using POST method of an ajax request ? $.ajax({

avatar
Percy
0 1 0 9
asked 07 September, 2021
47 votes
1 answers
1.8K views
C Program can find (via fopen) in gdb but not release (a.out)

Here's a C simple program, that reads a user input for a file location and prints the first line if such

avatar
Wei
0 1 0 9
asked 07 September, 2021
60 votes
30 answers
681 views
How do I create a Java string from the contents of a file?

I've been using the idiom below for some time now. And it seems to be the most wide-spread, at least on t

avatar
Vi
0 1 0 9
asked 07 September, 2021
53 votes
28 answers
758 views
Preview an image before it is uploaded

I want to be able to preview a file (image) before it is uploaded. The preview action should be executed all

avatar
Dusty
0 1 0 9
asked 07 September, 2021
64 votes
30 answers
741 views
How do I include a JavaScript file in another JavaScript file?

Is there something in JavaScript similar to @import in CSS that allows you to include a JavaScript file inside

avatar
Margo
0 1 0 9
asked 07 September, 2021
58 votes
29 answers
2.8K views
How do I get a file extension in PHP?

This is a question you can read everywhere on the web with various answers: $ext = end(explode('.',

avatar
Gigi
0 1 0 9
asked 07 September, 2021
55 votes
7 answers
969 views
Chmod 777 to a folder and all contents

I have a web directory /www and a folder in that directory called store. Within store are several f

avatar
Chelsea
0 1 0 9
asked 07 September, 2021