23 Solved Topics
Remove Filter
|
|
hi, i am trying to read from a text file and store the data in an array but i don't know how to get started with my code. can someone please get me started here. i have start with the code for locating the file, but i am having difficulty … |
|
Group, I can't seem to append multiple files into one text file. Unfortunately it's creating the first file but is not creating or appending the additional files into the first file. My code looks like this: getRestranName = System.IO.Directory.GetFiles(folderName) Dim counter As Integer = My.Computer.FileSystem.GetFiles(folderName).Count fileCount = Convert.ToInt32(counter) fileCount = … |
|
Please can someone help me and send me in the right direction. I am making a program that reads a text file and then out puts the data into a datagrid, the text file looks like this: [HRData] 84 73 0 -124 0 50 84 73 0 -124 0 50 … |
|
I think this community member will help me to clear my problem. Am not a c++ professional just a beginner. Am on the way to create a software for a browsing center. Am almost struck with the problem of creating multiple text files. To be more clear, Say, a browsing … |
|
I'm trying to read information from a text file and populate an array of structs using a pointer. I keep getting an error and I'm not sure how to fix it. Any help, comments, or tips are greatly appreciated! Thanks in advance for your time and help! error: request for … |
|
Hi, I want to process a text file. Here are the contents of the text file labels 1 -1 -1 0.2988 0.7012 -1 0.188161 0.811839 -1 0.0824541 0.917546 1 0.579515 0.420485 -1 0.0965063 0.903494 -1 0.174624 0.825376 -1 0.0404312 0.959569 -1 0.0770909 0.922909 -1 0.12001 0.87999 1 0.778388 0.221612 In … |
|
|
I have inputted a word from a user and i want to find that word in a text file. My text file is like this. -------------- name1:value1 name2:value2 name3:value3 ... ... -------------- So if my user inputs name1 so i want corresponding value1.. How can i do these? Can anyone … |
Is it pasible to find all occurrences of strings "North" and "North-East" in some txt file and save number of occurrences in some variable?? |
|
How do i get my program to read the last ten lines of the ".txt" file? Can you please dumb it down as much as possible. Here is what i have so far: // reading a text file #include <iostream> #include <fstream> #include <string> using namespace std; int main () … |
|
Suppose that I have a text file and I want to insert a character in each of its line at some position. Then can I insert a character there without rewriting all the characters ahead of that position with one position ahead. Like, if I try to do that in … |
|
I am using streamreader to read and streamwriter to write, i have put the lines into an array [text file contents] ********** Remove [ ] ***************** blah blah blah ;this is blah blah blah ;this is another blah [end of example file] i want to remove the lines that start … |
|
I am reading a text file inside Python that contains salaries and the raise they will receive as a percent. I am trying to multiply the initial salary by the percent and print the salary after the raise has been applied. I keep receiving an error message which is as … |
|
Hi there, ok, im fairly new to c++ and have been trying to figure this out for ages: I have a text file i want to read in that contains lines and lines of lat long points; N50 42.22 W002 55.33 N50 42.22 W002 55.33 N50 42.22 W002 55.33 i … |
|
Hi, there, I am also very new to Java. For class, I have to create an structure that reflects that of a document stored in a plain txt file. The hyerarchy of the classes is: Class document is made of //complex objects class Page objects, that are made of class … |
|
Visual Basic 2008 Hey i was wondering if it was possilbe to change the colour of text in a textbox through a button in a simple text editor that i am working on any help would be appreciated. cheers |
|
I'm taking on a new project and was hoping to get some help. I recently helped complete a Java application in which the user enters various inputs (of the type double or string)into text fields. The application then saves these inputs into a text document which is then used for … |
|
Hi, I am looking for advice on the best way to achieve my current goal. I am reading a textfile and extracting information from each line. For example string1 and string2. I am then writing these string to a datatable. However, sometimes there will be repeats in string1 and string2. … |
|
I have a txt file that I need to read into a listview, but I need to read from a specific line in that file. Can someone point me in a direction on doing this. Below is a sample of the txt file to read, 6400,3200,2,95.5,84,76.6,0 1,2,-20,15,0,0,0,"NO",0,0 TOTAL GPM= 6400 … |
|
I have a problem where I need to be able to create an array using the data from the text file. The first line of the file is the array size and the following values need to be put into structs. There may be more than one array per txt … |
|
Basically I've got a text editor which revolves around a jTextArea. There are some settings (e.g. whether line wrap is enabled) that I'd like to save to a file when the application closes, and then load up again when it runs next. I've spent a few hours trying to get … |
|
|
I need a php code that will open and show a random text file(something.txt) in the webpage.I found so many scripts that open a random line in one textfile but i need a code in php that will open a random .txt format file in a specific folder to see … |
How can i print a text file in c#? I've been looking on the internet and found code, but I just need it on paper, don't care what type of letters, just a regular print.. And i want to keep the code short. I've found long code, but I've got … |
|
Hi, I am writing a program to store basic information such as name and address but i want to be able to store this information as a separate file. So for example i could fill out the Name as 'Mary' and then save this as an executable file which I … |
The End.