Output process - save data in file

Briefly, I'm testing this code in python: My idea is to save solut = one + two in a file after inputting the values by keyboard, but now I have a problem. NO message error and nothing is written in file. python 2.7 I have changed and saved the cod...
more »

2017-06-20 05:06 (2) Answers

Find a file and copy it to a folder

I'm doing a script that is intended to copy a file to another directory based on a given file path as input. Problem is that it copies the whole folder but the file I'm trying to copy. I tried different options and commands but the result is the same...
more »

2017-06-19 20:06 (0) Answers

how to read integer int* from text in c

I have this structure and a structure for AVL tree struct imobil { unsigned int id; char *streetName; unsigned int streetNumber; int noApartaments; int *noPeopleLivingInApartaments; float totalValue; }; struct nodeAVL { ...
more »

2017-06-15 23:06 (1) Answers

NetBeans and Eclipse FileNotFoundException

I'm new in NetBeans and have problems with both IDEs not finding my files. If i compile and run my programm in PowerShell it runs perfectly. The ExceptionError loks like this "java.io.FileNotFoundException: model\field\levels\map01.field". My package...
more »

2017-06-11 13:06 (2) Answers

Printing the data in multiple structs

I'm working with four differest structs, two of which are quite large. I have a function to write each value of each struct to a .txt file, but the code is very long and robust. I'm looking for a way of printing out each value without having to hard ...
more »

2017-06-09 21:06 (3) Answers

Import Array from file in Javascript

I have an array of strings in their own file that I'm looking to use as a variable in my client side Javascript. I've been trying various $.getJSON and function loadJSON(callback){} solutions but everything is giving me the error GET http://localhost...
more »

2017-06-08 07:06 (1) Answers

Is there any File-System based database in PHP?

I am using a server, which has a restriction on the database usage i.e. I can't use more than 10mb of data, in the MySQL tables. So, I am searching for a alternate way of storing data, I need a database which stores data in form of files and it is al...
more »

2017-06-04 08:06 (3) Answers

how to search for a file with php

First thing is first. I am not a php developer this is something that is needed for my job so I took it on and I am learning as i go Right now we have an excel sheet that holds links for a manuals for the items we make and these have to be updated m...
more »

2017-06-01 21:06 (1) Answers

Save to file - bbash

I have a problem with saving - OK - YYYY-MM-DD HH:MM:SS to a file where OK is a string like echo "OK" My code cat "/home/chojtom/Tomek/Log.txt" >> "/home/chojtom/werify.txt" In log file is a date with format given by me. Can anyone help...
more »

2017-05-30 14:05 (0) Answers

C : Best way to go to a known line of a file

I have a file in which I'd like to iterate without processing in any sort the current line. What I am looking for is the best way to go to a determined line of a text file. For example, storing the current line into a variable seems useless until I g...
more »

2017-05-29 16:05 (4) Answers

C++ Saving 2-dimensional database into file ISSUE

I'm writing a small console app (name it student evidention), which has couple of functions, i.e it allows user to export database into text file. The problem which occurs during this process is that program actually saves only the first record of m...
more »

2017-05-16 11:05 (1) Answers

MVC : File.exists return false

I have a MVC method like this : public ActionResult DownloadDocument(string filePath){ //Other stuff if (!System.IO.File.Exists(filePath)) { FileLogger.Debug($"DownloadDocument : {filePath} NotFound"); } //Other stuff } file...
more »

2017-05-12 11:05 (2) Answers

Saving files in a loop with generic file name

How can I loop through a list of files, perform an operation and save the file to a new location with a name from a list? As an example I have a list of CSV files, and a list of new names, I would like to do a simple operation on the CSV file like c...
more »

2017-05-12 09:05 (1) Answers

Read 2 files into an associative array

In this case I only use php to do this. I have these .txt files to read: File A FA line 1 FA line 2 FA line 3 File B FB line 1 FB line 2 FB line 3 - FB line 4 FB line 5 FB line 6 - FB line 7 FB line 8 FB line 9 ...
more »

2017-05-10 10:05 (1) Answers