Questions tagged [temp]

A common directory on a file system which acts as a "scratch area" that can be used to hold files and directories for short periods of time.

When a file system is executing some process, it is often desirable to record information outside of registers/RAM and save them into memory. However, if these files are not intended to be permanently stored, a temporary "temp" directory may used to facilitate the storage/disposal of these files. For example, you might have a temp directory which stores logging data, which is regularly cleaned by the OS at discrete intervals.

temp may also refer to individual files, e.g. temp_data.csv which would be a temporary data file in the CSV format.

556 questions
0
votes
1 answer

Sorting an array of structs within a function

So I have this array of structs that is holding data about competitors within a race. This is how the struct is set up: struct competitor { int compID; char name[30]; int swimSecs; int cyclSecs; int runSecs; …
Unfitacorn
  • 186
  • 2
  • 12
0
votes
2 answers

Getting values from Database instead of using Declare

I am using declare @starttime datetime = '2015-10-28 10:00', @endtime datetime = '2015-10-28 12:00', @interval int = 30 I would like to retrieve these values from a table instead of declaring them as static values. I have a…
Fahad Ashraf
  • 75
  • 1
  • 9
0
votes
1 answer

Using the same GTT transaction in multiple procedure calls

I'm looking for a way to use my Global Temp Table for multiple procedure calls... Some context: Global Temp Table holds a list of IDs. It's created with an on commit delete rows; clause. My package body has 1 function and 5-10 procedures. My first…
Qbert
  • 102
  • 1
  • 11
0
votes
1 answer

(JAVA) How open a temp htm file in browser?

I tried this, but without sucess: File temp = File.createTempFile("document", ".htm"); BufferedWriter out = new BufferedWriter(new FileWriter(temp)); out.write("hi !!!"); out.close(); …
celsowm
  • 846
  • 9
  • 34
  • 59
0
votes
0 answers

CCleaner deletes .txt file from temp folder. how do i avoid deletion.(C#)

I have written a .txt file to the temp folder for data storage using my program. But when i run junk removing programs such as CCleaner. it is important that this file remains in the users system and I want to know what the best way of stopping it…
0
votes
2 answers

create a folder in the temporary directory of windows with Python and with a given name

using the code below i can create a folder in the temporary directory of windows OS import os import tempfile tempfile.mkdtemp() ~\\appdata\\local\\temp\\tmppelfyu' with this code i can get the temp file, give a name and create sysTemp =…
Gianni Spear
  • 7,033
  • 22
  • 82
  • 131
0
votes
2 answers

CodeIgniter session permission

I developed a codeigniter application that sometimes throw an exception in session_start. The returned code is: A PHP Error was encountered Severity: Notice Message: session_start(): ps_files_cleanup_dir: opendir(/tmp) failed: Permission denied…
Márcio Gonzalez
  • 1,020
  • 1
  • 8
  • 20
0
votes
0 answers

Count sorting in vector

codes before the line is codes that i get count from each name appear.. then i push the name and count into a new class.. and from the class i try to sort by highest number of count to lowest but having problem..codes after line is sorting part ..…
Suen
  • 1
  • 3
0
votes
1 answer

Download, unzip, and load Excel file in R using tempfiles only

I am trying and failing to write a process that will download a .zip archive, extract a particular Excel file from that archive, and load that Excel file into my R workspace without ever writing any of those files (the .zip or the .xls) to my hard…
ulfelder
  • 5,305
  • 1
  • 22
  • 40
0
votes
1 answer

Deleting all files in a folder in Python

I am trying to make a program in Python that will delete all files in the %temp% path, also known as C:\Users\User\AppData\Local\Temp. How can I do this? I am using Python 3.4.
kyoh
  • 11
  • 1
0
votes
1 answer

Creating a temp directory for storing files used in calculation

A python script downloads 2 tables from a database, does some calculations and creates a new one, and uploads it. There are intermediate files involved and to store all the files I create a folder called “temp” in the current working directory.…
Celeritas
  • 14,489
  • 36
  • 113
  • 194
0
votes
1 answer

Lua os.tempname

The file names returned by the Lua os.tempname function are weak in two respects Unlike most other languages it is not possible to define a custom prefix for the file name The _6char suffix that is generated can, with brute force but nevertheless,…
DroidOS
  • 8,530
  • 16
  • 99
  • 171
0
votes
1 answer

Best solution / practice for temp files with Google App Engine PHP?

What's generally accepted wisdom/tech solution for temp files on GAE using PHP, please? I need to store and process an image (a few hundred K in size) using PHP that momentarily (e.g. < 1 second) needs to exist as a temp file somewhere before it's…
Alex Kerr
  • 956
  • 15
  • 44
0
votes
0 answers

PHP don't use temp file for upload

I'm working on an embedded system that doesn't have much space so I would like to bypass creating a temp file on upload or just keep the temp file as the real file. I'm creating a way to update the system by uploading a file via the web. My concern…
Joe Jankowiak
  • 1,059
  • 12
  • 37
0
votes
1 answer

The temporary folder is cleaned automatically?

I write temporary files to a temporary folder like this: string path = Path.GetTempPath() + "\\" + Path.GetFileName(originalFilePath); File.WriteAllBytes(path, data); I write large files of images. So, I have a question - a temporary folder is…
Mikhail
  • 2,612
  • 3
  • 22
  • 37