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

Easy way to do memory <-> file cache for C++ x86?

I have a hard work to make a existing x64 software into x86 version. It will cost about 6G~10G memory in x64, but it crashes in running x86 version when it costs about 1.5G memory. I'm wondering whether there's an easy way to make cache file/temp…
bychance
  • 282
  • 4
  • 14
0
votes
1 answer

Where Should I Store my Temp application data for different OS Versions?

I have an application that run on diffident OS version like(win XP,win 7,win 8). I have a .sdf data base with read-only access,i used Environment.SpecialFolder.Templates for temp path. Temp Path=…
KF2
  • 9,887
  • 8
  • 44
  • 77
0
votes
1 answer

Loop through an XML to insert data in a temp table - SQL 2005

I am trying to execute this (standalone) SQL : Declare @test XML SET @test = '12' DECLARE @Temp TABLE( ProductId NVARCHAR(10) ) INSERT INTO @Temp(ProductId) SELECT…
Murtaza Mandvi
  • 10,708
  • 23
  • 74
  • 109
0
votes
1 answer

Getting data from multiple temp tables

I have inserted different values into different temp tables. For example Salesman wise sold particular product. Product wise I have inserted to temp table. But while getting data from temp table with join I am taking reference of first temp table.…
0
votes
2 answers

SQL Comparing Information in Tables

I want to know how I would compare two pieces of information such as say I have two columns in my query: surname and forename. How could I check to see whether the forename exists in the surname column and visa versa? So far I've created two…
0
votes
2 answers

Is it possible write a PHP script that transfers through FTP a file from a user's computer to an FTP server without using HTML file upload?

I'm not sure how common my request is but here goes: I have a client who wants to be able to receive files of up to 2GB in size from their customers. The reason why the files are kind of big is because they are graphic design files. Ideally, they…
racl101
  • 3,760
  • 4
  • 34
  • 33
0
votes
1 answer

Sort information from an object, use php sort method or mysql

Im pulling information from an API, the information is presented as an array of objects, i loop through and pull the information i need, sometimes it involves pulling from several objects for example i might want to pull the username from the users…
user1547410
  • 863
  • 7
  • 27
  • 58
0
votes
4 answers

where is the temporary variable for map initialization created in following program

In the following code snippet. The static member variable map is initializes using its default constructor. #include #include using namespace std; class A { static map m_map; //static member variable public: void…
Scorpious
  • 133
  • 1
  • 9
0
votes
3 answers

SQL Server 2000: select into case when in order by clause

I am trying to select rows into a temporary table with a CASE statement in the ORDER BY clause but records are not being sorted on insert. Declare @orderby varchar(10) , @direction varchar(10) set @orderby = 'col1' set @direction = 'desc' select…
user1430949
  • 849
  • 1
  • 6
  • 10
0
votes
1 answer

Invalid object name #temp in Dynamic SQL and Array of field names

I am using #temp table in two separate stored procedures. In one case, it is working ok while in other case it gives error ‘Invalid object name #temp’. First case: SELECT SubsID,        SubsName,        AbbrName INTO   #TEMP FROM   SubsList WHERE…
Sushil Pugalia
  • 39
  • 4
  • 14
0
votes
2 answers

Temporary files & folders on Windows

Emulating multithreading by loading a DLL multiple times (it's designed for this). Since LoadLibrary() doesn't really allow it, the DLL copies itself into a temporary file, via GetTempPath() and GetTempFileName(). It's a small file and upon thread…
Silviu-Marian
  • 10,565
  • 6
  • 50
  • 72
0
votes
5 answers

Is there a benefit in using a single temp variable in a method?

Often in code I get to scenarios I need a temporary variable - example: String tempUserName = input.getUserName(); tempUserName = sanitzie(tempUserName); validate(tempUserName); // ... Do something else with tempUserName String tempUserNickName =…
RonK
  • 9,472
  • 8
  • 51
  • 87
0
votes
1 answer

Is it acceptable to leave files in user temp folder?

I'm working on an application that generates a set of bitmaps and then loads them into a form for a user to pick from. The bitmaps are generated from a small vector library which the user can add to. The code now creates the files and then deletes…
Jon Fournier
  • 4,299
  • 3
  • 33
  • 43
0
votes
0 answers

How to call SPs with #temp using OpenRowSet in a View?

I am trying to run a stored procedure from an application which supports connecting to only tables and views. My work around was to use a view which gets results from SP via Openrowset(). Turns out that the SP is using #temp tables to store…
Faiz
  • 5,331
  • 10
  • 45
  • 57
0
votes
1 answer

perror: No such file or directory

I have function. FA->file_temp is a copy of FA->file. FA->file_temp is being in TEMP dir. (C:\Users\User\AppData\Local\Temp) stat(FA->file, &st_file); filesize = st_file.st_size; ffile = fopen(FA->file_temp, "rb"); if (ffile == NULL)…
baira
  • 59
  • 2
  • 11