6,015 Topics
![]() | |
I'm trying to get each line of text of a file split into words and then put into an array I found an exmaple oc cpluscplus.com and their example works but when i try to edit to make changes to read the line of text from a file i get … | |
Hi peeps i've got an problem with space and tabs in a text file. i've build an app that reads a file and creates an array out of every line. this works just fine but then I noticed that the array is cut of after every space and/or tabular. it … | |
I'm getting into bash shell scripting with Ubuntu 8.10, and the tutorial I'm using is telling me to open the file .bash_profile which is allegedly in the home directory. However, I cannot find this file, except in /usr/share/doc/adduser/examples/adduser.local.config.examples/skel and it's called "dot.bash_profile". Plus, the whole thing is just comments. The … | |
Hello.Please i have a problem with my code.I am trying to edit a file.The problem occurs when i use the seek function.for example,i have a file outlined like this: [CODE] myfile.txt <Name>Ben</Name> <Age>32</Age> <Sex>Male</Sex> <Country>Mars City</Country> [/CODE] Now,when i try to edit the Age,i use the code: [CODE=python] f=open('myfile.txt','a') f.seek(17,0) … | |
how to delete the last line of the text file using c#. i applicaiton create a text file ..with 2 empty lines at the end of the File now i just require a method which open the text file and delete the last 2 lines of the text File ..the … | |
How to include something that is a directory before the file like: public_html/includes/sources/yt.php the file yt.php must include a file which is in: public_html/includes/fetch.php what will it be like? [ICODE]include_once(../file.php)[/ICODE] or?:'( ![]() | |
Hi all, I have little problem when reading a file char by char and when i tried to make a check at the end of file. I am making a check through '\n' but its not working. Please have a look in the following Program and let me know yours … | |
![]() | <code> Hi Guys, I am new in perl. I have this file:- 2009-01-08 09:29:19 ABCD MS08-001 Works Suite 2005 (KB943973) 2009-01-08 09:29:19 ABCD MS08-001 Works Suite 2005 (KB943973) 2009-01-08 09:29:19 BCDE MS08-001 Works Suite 2005 (KB943973) 2009-01-09 09:29:19 FFFF MS08-001 Works Suite 2005 (KB943973) 2009-01-08 09:29:19 ABCD MS08-002 Works Suite … ![]() |
Wel, I have discovered, how to copy one text file to another,yet. (See code bellow). However, I really need to Cap every word in the source text file and copy the text that way to the second file. But I'm desperate. I tried few ways to make it (via Character.toUpperCase()) … | |
Hi guys, I have written some C++ code to do three things: 1. Read data from a delimited file (user specifies type of delimiter used), and return data as a "2D array". 2. Print 2D array to console. 3. Write the 2D array to a tab delimited text file. I … | |
I'm using the writeAlltext method to save a text file with the contents saved in string variable namely textFile1. File.WriteAllText(saveFileDialog1.FileName, textFile1); However for each blank line i'm getting two boxes in the output text file. I need to keep the formatting as it is while saving a file. the blank … | |
Hi all, I would liek to know if its possible to read a text file in assembly I am currently using 8051 microcontroller and sending the text file from the PC to the microcontroller via the USB. Is there any way to read the content of the text file or … | |
Hello My recursive file scan is not doing what I want it to do. I want it to be able to go through all roots (drives)... With no user intervention, so without including "C:\\" or "." as a string in the source, or without a TextIO.java class. [ICODE]import java.io.*; import … | |
I want to incorporate a file browser into my windows app so users can select which file to copy. I am running vs2008. | |
Currently my users download a database outside my app then from within it they can add the database to their main database. Now I want to have the app download and add the database all at once. If I change the file extension to .txt the code below downloads the … | |
I have a help file (.chm), and I want to be able to perform a seemingly simple operation of having that file open when the user selects "Contents" from the "Help" menu. I have added the proper object to the project and set it's namespace property to the location of … | |
Hi all, I'm creating a progam in C# that reads a file location at start up and displays the parent folders in a combo box. This file location may change in future. So I intend to keep this in an xml file and allow the user to change it when … | |
Ok, I've got a spreadsheet of ~3000 lines, I have a selection of images that need matching up to these lines. There is a matching field in the spreadsheet to the file name of the images but I can't find anyway of easily extracting the images I need. The trouble … | |
Hi, I have a file output.txt as follows : c FILE c c c p val 25 36 8 1 0 -1 -8 0 -9 -7 0 -9 -2 0 7 2 9 0 -10 6 0 -10 8 0 -6 -8 10 0 -11 -9 0 -11 -3 0 … | |
Dear IT Pro and Experts, I have a computer running WinXP with SP2, it has 128MB of RAM, and 477Mhz Processor. I was using internet on this computer suddenly the computer was little slow and when I checked the paging file usage in "processes" by going to windows task manager,it … | |
Hi everyone, I'm doing an hotel application which has an introduction form. In that form I put a RichTextBox control and a menu toolstrip. I want to load a rtf file to richtextbox when the toolstrip is clicked (The file is a default file chosen by my choice). I can … | |
Hi, This must be a rather dumb question, but I'll ask it anyway. Me and my friend are making a simple news script for our website, and thus we are not going to use mysql. The idea was to use mod_rewrite for SEO friendly URLs e.g /news/2008/12/25/this-is-the-subject/ (== news.php?y=2008&m=12&d=25&s=this-is-the-subject ) … | |
I have posted the update member function as many the 12th students can copy my project. I want to open the binary file compare the roll numbers with the inputted roll if it matches the object of the file should be overwritten with a new object i.e *X. [code] void … | |
Hello, I need to read mp4 video files, perform basic (simple file cut) on-line editing functions and write edited files to disk. Question: Is there a means to programmatically access the video file playing time file information without having to play the file on media video player such as Quick … | |
Hi I am new to php, I had a form in my page to upload image and some data. And that image filed is not mandatory. I had done that script well and working well. But the problem is it always need a image ( that is not mandatory in … | |
I have a mechanism to upload a file to the remote disk from the JSP page. But now the issue is that User is not supposed to access the remote disk as it is supposed to be a restricted access remote disk. Now I was wondering on how to upload … | |
python script reading config file and then zipping files after X days from directories. dir contains dynamic files. i have specified the extension and the "startswith" in the config. problem i have is it [B]zips up everything[/B]. (if i can get this work will add a delete too). i also … | |
this is asp using c# [ICODE] string filename = "tracking result.csv"; string sExportFile = Server.MapPath(filename); [/ICODE] it just the piece of the code the code save the file to the server Q = How can i save the file to the C drive? eg like c:\\testfolder\tracking result.csv | |
Hi, I recently set up a home network with a Linksys WRT54G wireless router. The Office desktop and the notebook pC both have windows XP professional. Our office desktop computer is attached to the router, and 1 notebook PC and another desktop (Dining Room) are also attached to the network. … | |
Hey, I am creating a project that writes to a file. The problem is that I don't want it to write to a file on my computer but to a file on my server. I am using this [CODE]ofstream myfile ("www.myurl.com/test.txt");[/CODE] What I want to do is open that file … | |
this coding is about copy one existing file into other file but it can't do so throught the command line arg. what is the solution....? [code=c] #include<stdio.h> #include<conio.h> #include<stdlib.h> void main(char *argv[]) { FILE *fp1,*fp2; char c; int i; clrscr(); fp1=fopen(argv[1],"r"); rewind(fp1); fp2=fopen(argv[2],"w"); if(fp1==NULL) { printf("Source File is Not Exist"); … | |
Hi all, I have a file which have ip's of three servers say servers.txt. I am opening the file for every request. Instead I want to load the file for the first request and from the next time onwards. I have to avoid file I/O. How can I achieve this … | |
![]() | Hi, Okay, so what I am actually trying to do is open a file, convert any lowercase text to uppercase, and then print it on screen. I thought it best to first just begin by trying to open a file and display the contents on screen. I figured that once … |
Hi I'm having a problem reading in a file. I am using BCB6 Personal Edition under Win XP. The file is always read correctly up to the 4413th byte then the data is corrupted. I have modified the code from a fixed array size to use a vector so I … | |
hi all! i want to delete a file/directory in java, the delete().depends on other programs which uses file name as string.but for me to delete the file,the name must be a File. that is what i have realized as when i use string it does not recognized some methods,like List … | |
Hello guys, I am new in this forum and i hope im gonna get some fast help. I have this problem where i should input numbers from a .doc file, and the program should output how many times the number of occurences of each number. ie: the numbers in the … | |
Help! I bought 2 laptops for my kids this Christmas. Since they have both been using my PC for 2 years, there are many mp3, word, pps, and excel files on my computer. Is there any way to transfer these files to the respective laptops? My PC will be on … | |
Hi I am trying to upload an excel file to the server. But it won't work, every time I am trying to upload an xls file and press the button. it writes: No file was uploaded. as if i had no file. you are welcome to try on: [url]http://radio.web.surftown.dk/admin/indset_program.aspx[/url] the … | |
I'm making a program, and I'm at the beginning where I'm just reading the information in. The goal of this short bit of code is to read in a date (when I finish the program it should be able to read in multiple dates from a file, but I'm keeping … | |
I'm mapping a file view to share an array of 200 std::strings between two processes but I've been getting an access violation error when I write a string longer than 15 characters into the array. Does anyone know how I might increase the size of each array element so it … | |
Hi, I am trying to find and replace a particular string in a file and save that file. Here is what I did, where I am writing the output after replacement into new file. I was trying to avoid to open the file for writing and try to use just … | |
Hello ,, i need to write to opened file in w+ mode.. now the problem is that first off all i need to check first string in each line if he the same to value i want to enter , dont enter and print error : in another words i … | |
Hi I am trying to upload an excel file to the server. But it won't work, every time I am trying to upload an xls file and press the button. it writes: No file was uploaded. as if i had no file. you are welcome to try on: http://radio.web.surftown.dk/admin/indset_program.aspx the … | |
Hey guys, I'm having another problem (two actually) with a function that reads 5 variables (type [B]int[/B]) stored in an text file, separated by lines ([B]\n[/B]) and then it returns them to use in the main() program. The thing is, I do not know how to return them to the … | |
Hello I'm having some trouble writing to text and object files in java. Basically i need to delete the contents of the file before i write the new information on it...which i'm not being able to do. well this is what i have in terms of code for the text … | |
here is my code so far: [CODE] #include <stdio.h> #include <string.h> struct sale { int week; int units; int price; char name[30]; }; int main(int argc, char *argv[]) { int week = 0; int units = 0; int price = 0; char name[30]; int count = 13; int i = … | |
Hi I am Raviteja new to web development. I need to upload a file to a server say "abc" and later i have to us the path of the file that is uploaded to a server.I am using VB.I know how to upload the files to a local client folder(say … | |
I hope it helps you, It is a sub proceedure with with a file open dialog object called "ofd" and the event object is called "cmdcopy" the text on the cmdcopy object is "Copy". I leave you to fiddle with the snippet. [CODE] Private Sub cmdcopy_Click(ByVal sender As System.Object, ByVal … | |
I have a file with record times, i need take each time and compare it whit the actual player time, so if the player time is < then the best time:input player time on top, if is >, then compare whit the next time and so... the problem is until … |
The End.