Hai,
In the below code I am deleting a file from client pc
Dim fs
fs = Server.CreateObject("Scripting.FileSystemObject")
'If fs.FileExists(upfile.PostedFile.FileName) Then
fs.DeleteFile(upfile.PostedFile.FileName)
'End If
In the Web.config file, I have configured the trust level also. :
<configuration>
<system.web>
<identit...
Which method can be used to read one line at a time from a file in C.
I have used fgets function also. but it's not working.
it's reading space separated token only...
What to do ???
...
In Linux, a lot of IPC is done by appending to a file in 1 process and reading the new content from another process.
I want to do the above in Windows/.NET (Too messy to use normal IPC such as pipes). I'm appending to a file from a Python process, and I want to read the changes and ONLY the changes each time FileSystemWatcher reports an...
Sorry for the long explanation. Thanks in advance to all who are taking their time.
I am an Ubuntu user who has set up Titanium Developer on a MacMini in order to build an app for the iPhone (and ultimately some other platforms).
Rather than having any local code built in, the app simply points to my website. To do that, all I needed t...
How would I list all the files and folders in a folder alphabetically with PHP. I used the following for the files a.txt, b.txt, c, d.txt. Where c is a folder.
The problem is that c is displayed last instead of after b.txt because it is a folder.
I'd also like to be able to check if each is either a file or folder.
<?php
$dir = open...
Does anyone know if it is possible to employ the LaTeX hyperref package to open a target PDf at a specific page? I have tried using the \href{FILENAME#page=XX}{LINK_TEXT} command, where XX is the target page number, but no dice. The file iteself opens, but it always starts out at the first page. The idea being that I have a large inde...
I have an object with several text strings as members. I want to write this object to the file all at once, instead of writing each string to file. How can I do that?
...
Hi.
I have the URL of a text file and I want my Java program to read that text file.
But the plot thickens! The file is constantly being appended with new lines and I want to read these lines as they come in.
I think the right approach is to open a URLConnection to the URL of the file and somehow put that URLConnection under the 'supe...
I have one function ParseHtmlTable(string htmlContent).
Now in that function I want to pass the content of the html file. Now can I do by writing only filename with its path.Then I have to read that file.But I dont how to read this file ?
Then how to open particular file and read the contents of the file and send those contents to par...
My plan is to display a list of items alphabetically in a table view that has about 100 items. Each item has an image, a list of times and a description that the tableview will drill down to. What I am struggling with is the correct way to store and load this data. Some have told me that a plist will be too data heavy and that core da...
I am building a game similar to mastermind for the iPhone and I am needed to compare two strings character by character. I need to choose a string from the database and compare it with the string entered by the player.
I have tried the following but it does not seem to work. Can you please help me.
//create file handle
NSFileHandle *fi...
I need to read a very big log file (about 400MB) and display its content in a textarea.
Obviously I can't read the whole file first, because of its dimension, so I am looking for a method that can read the first n lines (or portion of bytes) and then, when asked, start reading the next n lines, and so on. The method needs to work in bot...
How can I load a matrix data file into Matlab?
The file contains numeric data as well as strings. One line in the file corresponds to one measurement; data on the same line is separated by commas.
...
I have something like this:
"Content-Transfer-Encoding: base64
UEsDBBQABgAIAAAAIQDfz5sukgEAAJQGAAATANwBW0NvbnRlbnRfVHlwZXNdLnhtbCCi2AEooAAC
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
That ends with a line like this:
"DwAPAPADAAA7KQAAAAA="
It is a file with MIME format, i thought about putting "ba...
I want to count the number of file in the current directory as well as load all file names in the array. If possible, I want to know how to filter file extension also
...
I am currently working on a file processing service that looks at a fileshare, where files are uploaded to via FTP.
For scalability I've been asked to make this service to be able to be load balanced, so the service has to expect that other services on different machines may also be trying to process these files.
OK, so I thought I sho...
Do I need to malloc when creating a file to write to?
The file will be based on the contents of 2 others, so would I need to malloc space for the writeable file of sizeof( file a ) + sizeof( file b) + 1?
Sorry if this makes no sense; if it doesn't then I guess I need to go read some more :D
Essentially, I have 2 txt files and a stri...
Hi All,
Is there a standard Linux command i can use to read a file chunk by chunk?
For example, i have a file whose size is 6kB. I want to read/print the first 1kB, and then the 2nd 1kB ...
Seems cat/head/tail wont work in this case.
Thanks very much.
...
I have several questions regarding filenames and the "iPod Library".
I understand I can retrieve
MPMediaItems from the "iPod
Library". How may I get the
filename of a MPMediaItem? (I only
need to read the filenames, not save to or otherwise modify
the library.)
When an mp3 is added to the iPod
library (via iTunes), does it keep ...
I have an application where there are multiple processes. They share the reading and writing of a set of files that grows over time. I'd rather not expose thousands of files to the user's environment, where it would be much easier for them to accidentally modify or delete one of them. Is there an API that will allow reasonably high perfo...